diff options
Diffstat (limited to 'js/src/wasm/WasmCompileArgs.h')
-rw-r--r-- | js/src/wasm/WasmCompileArgs.h | 23 |
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); }; |