summaryrefslogtreecommitdiffstats
path: root/js/src/wasm/WasmCompileArgs.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /js/src/wasm/WasmCompileArgs.h
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/wasm/WasmCompileArgs.h')
-rw-r--r--js/src/wasm/WasmCompileArgs.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/js/src/wasm/WasmCompileArgs.h b/js/src/wasm/WasmCompileArgs.h
index af85026b93..74b03bfe03 100644
--- a/js/src/wasm/WasmCompileArgs.h
+++ b/js/src/wasm/WasmCompileArgs.h
@@ -74,7 +74,19 @@ class Tiers {
// available under prefs.)
struct FeatureOptions {
- FeatureOptions() : isBuiltinModule(false), jsStringBuiltins(false) {}
+ FeatureOptions()
+ : isBuiltinModule(false),
+ jsStringBuiltins(false)
+#ifdef ENABLE_WASM_GC
+ ,
+ requireGC(false)
+#endif
+#ifdef ENABLE_WASM_TAIL_CALLS
+ ,
+ requireTailCalls(false)
+#endif
+ {
+ }
// Enables builtin module opcodes, only set in WasmBuiltinModule.cpp.
bool isBuiltinModule;
@@ -82,6 +94,15 @@ struct FeatureOptions {
// is also enabled.
bool jsStringBuiltins;
+#ifdef ENABLE_WASM_GC
+ // Enable GC support.
+ bool requireGC;
+#endif
+#ifdef ENABLE_WASM_TAIL_CALLS
+ // Enable tail-calls support.
+ bool requireTailCalls;
+#endif
+
// Parse the compile options bag.
[[nodiscard]] bool init(JSContext* cx, HandleValue val);
};