зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1370820: Allow disabling async stacks for the JS shell; r=jandem
MozReview-Commit-ID: 2mDd0r2PV2A --HG-- extra : rebase_source : 718e836bab5420295a6220a3849f6c59b3934eb5 extra : histedit_source : 378dfb5a339ab93c8e1097a02fd6b6d110cfc6c9
This commit is contained in:
Родитель
6c0a575bcf
Коммит
86411e9135
|
@ -267,6 +267,7 @@ static bool enableNativeRegExp = false;
|
|||
static bool enableUnboxedArrays = false;
|
||||
static bool enableSharedMemory = SHARED_MEMORY_DEFAULT;
|
||||
static bool enableWasmAlwaysBaseline = false;
|
||||
static bool enableAsyncStacks = false;
|
||||
#ifdef JS_GC_ZEAL
|
||||
static uint32_t gZealBits = 0;
|
||||
static uint32_t gZealFrequency = 0;
|
||||
|
@ -7771,6 +7772,7 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
enableNativeRegExp = !op.getBoolOption("no-native-regexp");
|
||||
enableUnboxedArrays = op.getBoolOption("unboxed-arrays");
|
||||
enableWasmAlwaysBaseline = op.getBoolOption("wasm-always-baseline");
|
||||
enableAsyncStacks = !op.getBoolOption("no-async-stacks");
|
||||
|
||||
JS::ContextOptionsRef(cx).setBaseline(enableBaseline)
|
||||
.setIon(enableIon)
|
||||
|
@ -7778,7 +7780,8 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
.setWasm(enableWasm)
|
||||
.setWasmAlwaysBaseline(enableWasmAlwaysBaseline)
|
||||
.setNativeRegExp(enableNativeRegExp)
|
||||
.setUnboxedArrays(enableUnboxedArrays);
|
||||
.setUnboxedArrays(enableUnboxedArrays)
|
||||
.setAsyncStack(enableAsyncStacks);
|
||||
|
||||
if (op.getBoolOption("wasm-check-bce"))
|
||||
jit::JitOptions.wasmAlwaysCheckBounds = true;
|
||||
|
@ -8379,6 +8382,7 @@ main(int argc, char** argv, char** envp)
|
|||
|| !op.addStringOption('z', "gc-zeal", "LEVEL(;LEVEL)*[,N]", gc::ZealModeHelpText)
|
||||
#endif
|
||||
|| !op.addStringOption('\0', "module-load-path", "DIR", "Set directory to load modules from")
|
||||
|| !op.addBoolOption('\0', "no-async-stacks", "Disable async stacks")
|
||||
)
|
||||
{
|
||||
return EXIT_FAILURE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче