diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /js/public/WasmFeatures.h | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/public/WasmFeatures.h')
-rw-r--r-- | js/public/WasmFeatures.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/js/public/WasmFeatures.h b/js/public/WasmFeatures.h index 7e30a748d2..30c1bcca26 100644 --- a/js/public/WasmFeatures.h +++ b/js/public/WasmFeatures.h @@ -62,6 +62,11 @@ #else # define WASM_TAIL_CALLS_ENABLED 0 #endif +#ifdef ENABLE_WASM_JSPI +# define WASM_JSPI_ENABLED 1 +#else +# define WASM_JSPI_ENABLED 0 +#endif #ifdef ENABLE_WASM_MOZ_INTGEMM # define WASM_MOZ_INTGEMM_ENABLED 1 #else @@ -72,6 +77,11 @@ #else # define WASM_MULTI_MEMORY_ENABLED 0 #endif +#ifdef ENABLE_WASM_BRANCH_HINTING +# define WASM_BRANCH_HINTING_ENABLED 1 +#else +# define WASM_BRANCH_HINTING_ENABLED 0 +#endif #ifdef ENABLE_WASM_JS_STRING_BUILTINS # define WASM_JS_STRING_BUILTINS_ENABLED 1 #else @@ -153,6 +163,15 @@ /* flag fuzz enable */ true, \ /* preference name */ tail_calls) \ FEATURE( \ + /* capitalized name */ JSPromiseIntegration, \ + /* lower case name */ jsPromiseIntegration, \ + /* compile predicate */ WASM_JSPI_ENABLED, \ + /* compiler predicate */ IonAvailable(cx), \ + /* flag predicate */ true, \ + /* flag force enable */ false, \ + /* flag fuzz enable */ false, \ + /* preference name */ js_promise_integration) \ + FEATURE( \ /* capitalized name */ MozIntGemm, \ /* lower case name */ mozIntGemm, \ /* compile predicate */ WASM_MOZ_INTGEMM_ENABLED, \ @@ -169,7 +188,16 @@ /* flag predicate */ true, \ /* flag force enable */ false, \ /* flag fuzz enable */ false, \ - /* preference name */ test_serialization) + /* preference name */ test_serialization) \ + FEATURE( \ + /* capitalized name */ BranchHinting, \ + /* lower case name */ branchHinting, \ + /* compile predicate */ WASM_BRANCH_HINTING_ENABLED, \ + /* compiler predicate */ IonAvailable(cx), \ + /* flag predicate */ true, \ + /* flag force enable */ false, \ + /* flag fuzz enable */ false, \ + /* preference name */ branch_hinting) // clang-format on |