Bug 1522824: Add an ENABLE_WASM_REFTYPES around the use of wasmGc(); r=lth

--HG--
extra : rebase_source : 9e7bb17c39a3d66a10a91026e0e223151db909d0
This commit is contained in:
Benjamin Bouvier 2019-01-25 14:59:11 +01:00
parent a7246ce305
commit e3e01de090

View File

@ -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;