mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 1522824: Add an ENABLE_WASM_REFTYPES around the use of wasmGc(); r=lth
--HG-- extra : rebase_source : 9e7bb17c39a3d66a10a91026e0e223151db909d0
This commit is contained in:
parent
a7246ce305
commit
e3e01de090
@ -84,12 +84,17 @@ CompileArgs::build(JSContext* cx, ScriptedCaller&& scriptedCaller)
|
||||
bool cranelift = false;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_WASM_REFTYPES
|
||||
bool gc = cx->options().wasmGc();
|
||||
#else
|
||||
bool gc = false;
|
||||
#endif
|
||||
|
||||
// Debug information such as source view or debug traps will require
|
||||
// additional memory and permanently stay in baseline code, so we try to
|
||||
// only enable it when a developer actually cares: when the debugger tab
|
||||
// is open.
|
||||
bool debug = cx->realm()->debuggerObservesAsmJS();
|
||||
bool gc = cx->options().wasmGc();
|
||||
|
||||
bool sharedMemory = cx->realm()->creationOptions().getSharedMemoryAndAtomicsEnabled();
|
||||
bool forceTiering = cx->options().testWasmAwaitTier2() || JitOptions.wasmDelayTier2;
|
||||
|
Loading…
Reference in New Issue
Block a user