зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1307446 - Disable async stacks by default in the JS shell and add command line option for enabling them. r=evilpie
MozReview-Commit-ID: HgF3UenbiFY
This commit is contained in:
Родитель
9978ef7ab0
Коммит
a43663902d
|
@ -314,6 +314,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;
|
||||
|
@ -7132,6 +7133,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("async-stacks");
|
||||
|
||||
JS::ContextOptionsRef(cx).setBaseline(enableBaseline)
|
||||
.setIon(enableIon)
|
||||
|
@ -7139,7 +7141,8 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
.setWasm(true)
|
||||
.setWasmAlwaysBaseline(enableWasmAlwaysBaseline)
|
||||
.setNativeRegExp(enableNativeRegExp)
|
||||
.setUnboxedArrays(enableUnboxedArrays);
|
||||
.setUnboxedArrays(enableUnboxedArrays)
|
||||
.setAsyncStack(enableAsyncStacks);
|
||||
|
||||
if (op.getBoolOption("no-unboxed-objects"))
|
||||
jit::JitOptions.disableUnboxedObjects = true;
|
||||
|
@ -7598,6 +7601,7 @@ main(int argc, char** argv, char** envp)
|
|||
|| !op.addBoolOption('\0', "no-unboxed-objects", "Disable creating unboxed plain objects")
|
||||
|| !op.addBoolOption('\0', "unboxed-arrays", "Allow creating unboxed arrays")
|
||||
|| !op.addBoolOption('\0', "wasm-always-baseline", "Enable experimental Wasm baseline compiler when possible")
|
||||
|| !op.addBoolOption('\0', "async-stacks", "Enable capturing of async stacks, e.g. for Promises")
|
||||
#ifdef ENABLE_SHARED_ARRAY_BUFFER
|
||||
|| !op.addStringOption('\0', "shared-memory", "on/off",
|
||||
"SharedArrayBuffer and Atomics "
|
||||
|
|
Загрузка…
Ссылка в новой задаче