Search completed in 1.16 seconds.
JS_FS
d in SpiderMonkey 31 #define JS_FS_END ... Name Type Description name const char * The JavaScript name for the function. (or index, if JSPROP_INDEX is present in flags) symbol a member name of JS::SymbolCode The JavaScript symbol for the function. call JSNative Pointer to the C/C++ implementation of the function. info const
JSJitInfo * Pointer to the Jit Info. nargs uint16_t The number of arguments the function expects. flags uint16 The bitwise 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...
...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 ...
JSFunctionSpec
Defines a single function for an object. Syntax struct JSFunctionSpec { const char *name; JSNativeWrapper call; uint16_t nargs; uint16_t flags; const char *selfHostedName; }; typedef struct JSNativeWrapper { JSNative op; const
JSJitInfo *info; } JSNativeWrapper; Name Type Description name const char * The function's name. call JSNativeWrapper The built-in JS call wrapped by this function. If the function does not wrap a native JS call, set this value to NULL. nargs uint16_t The value used for Function.length. This no longer guarantees anything about the vp array. flags uint16_t The bitwise OR of any number of function flags. selfHostedName ...