Search completed in 1.18 seconds.
1 results for "jsjitinfos":
JS_FS
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS FS
e OR of any number of function flags. selfHostedName const char * The function's name in Self-Hosted JavaScript code. Description Use these macros to define an array of JSFunctionSpecs to pass to JS_DefineFunctions or JS_InitClass. JS_FN (whose name pays homage to the old JSNative/JSFastNative split) simply adds the flag JSFUN_STUB_GSOPS. JS_FNINFO allows the simple adding of JSJitInfos. JS_SELF_HOSTED_FN declares a self-hosted function. Finally JS_FNSPEC has slots for all the fields. The _SYM variants allow defining a function with a symbol key rather than a string key. For example, use JS_SYM_FN(iterator, ...) to define an @@iterator method. (In builds without ES6 symbols, it defines a method with the string id "@@iterator".) See an example in the JSAPI User Guide. See Also ...