diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /js/public/PropertySpec.h | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/public/PropertySpec.h')
-rw-r--r-- | js/public/PropertySpec.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/js/public/PropertySpec.h b/js/public/PropertySpec.h index 9d8115508d..0c37e598fb 100644 --- a/js/public/PropertySpec.h +++ b/js/public/PropertySpec.h @@ -373,6 +373,10 @@ constexpr uint8_t CheckAccessorAttrs() { JSPropertySpec::nativeAccessors(::JS::SymbolCode::symbol, \ CheckAccessorAttrs<attributes>(), getter, \ nullptr) +#define JS_SYM_GETSET(symbol, getter, setter, attributes) \ + JSPropertySpec::nativeAccessors(::JS::SymbolCode::symbol, \ + CheckAccessorAttrs<attributes>(), getter, \ + nullptr, setter, nullptr) #define JS_SELF_HOSTED_GET(name, getterName, attributes) \ JSPropertySpec::selfHostedAccessors(name, CheckAccessorAttrs<attributes>(), \ getterName) @@ -417,11 +421,15 @@ struct JSFunctionSpec { #define JS_FS_END JS_FN(nullptr, nullptr, 0, 0) /* - * Initializer macros for a JSFunctionSpec array element. JS_FNINFO allows the - * simple adding of JSJitInfos. JS_SELF_HOSTED_FN declares a self-hosted - * function. JS_INLINABLE_FN allows specifying an InlinableNative enum value for - * natives inlined or specialized by the JIT. Finally JS_FNSPEC has slots for - * all the fields. + * Initializer macros for a JSFunctionSpec array element. + * + * - JS_FNINFO allows the simple adding of JSJitInfos. + * - JS_SELF_HOSTED_FN declares a self-hosted function. + * - JS_INLINABLE_FN allows specifying an InlinableNative enum value for natives + * inlined or specialized by the JIT. + * - JS_TRAMPOLINE_FN allows specifying a TrampolineNative enum value for + * natives that have a JitEntry trampoline. + * - 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 @@ -431,6 +439,8 @@ struct JSFunctionSpec { JS_FNSPEC(name, call, nullptr, nargs, flags, nullptr) #define JS_INLINABLE_FN(name, call, nargs, flags, native) \ JS_FNSPEC(name, call, &js::jit::JitInfo_##native, nargs, flags, nullptr) +#define JS_TRAMPOLINE_FN(name, call, nargs, flags, native) \ + JS_FNSPEC(name, call, &js::jit::JitInfo_##native, nargs, flags, nullptr) #define JS_SYM_FN(symbol, call, nargs, flags) \ JS_SYM_FNSPEC(symbol, call, nullptr, nargs, flags, nullptr) #define JS_FNINFO(name, call, info, nargs, flags) \ |