mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Issue #1442 - Part 2: Add a run-time preference for toggling the streams API. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
This commit is contained in:
parent
90ca1f569a
commit
62467428a3
5 changed files with 26 additions and 3 deletions
|
|
@ -318,6 +318,7 @@ static bool enableUnboxedArrays = false;
|
|||
static bool enableSharedMemory = SHARED_MEMORY_DEFAULT;
|
||||
static bool enableWasmAlwaysBaseline = false;
|
||||
static bool enableArrayProtoValues = true;
|
||||
static bool enableStreams = false;
|
||||
static bool printTiming = false;
|
||||
static const char* jsCacheDir = nullptr;
|
||||
static const char* jsCacheAsmJSPath = nullptr;
|
||||
|
|
@ -7565,6 +7566,7 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
enableUnboxedArrays = op.getBoolOption("unboxed-arrays");
|
||||
enableWasmAlwaysBaseline = op.getBoolOption("wasm-always-baseline");
|
||||
enableArrayProtoValues = !op.getBoolOption("no-array-proto-values");
|
||||
enableStreams = op.getBoolOption("enable-streams");
|
||||
|
||||
JS::ContextOptionsRef(cx).setBaseline(enableBaseline)
|
||||
.setIon(enableIon)
|
||||
|
|
@ -7573,7 +7575,8 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
.setWasmAlwaysBaseline(enableWasmAlwaysBaseline)
|
||||
.setNativeRegExp(enableNativeRegExp)
|
||||
.setUnboxedArrays(enableUnboxedArrays)
|
||||
.setArrayProtoValues(enableArrayProtoValues);
|
||||
.setArrayProtoValues(enableArrayProtoValues)
|
||||
.setStreams(enableStreams);
|
||||
|
||||
if (op.getBoolOption("wasm-check-bce"))
|
||||
jit::JitOptions.wasmAlwaysCheckBounds = true;
|
||||
|
|
@ -7845,7 +7848,8 @@ SetWorkerContextOptions(JSContext* cx)
|
|||
.setWasmAlwaysBaseline(enableWasmAlwaysBaseline)
|
||||
.setNativeRegExp(enableNativeRegExp)
|
||||
.setUnboxedArrays(enableUnboxedArrays)
|
||||
.setArrayProtoValues(enableArrayProtoValues);
|
||||
.setArrayProtoValues(enableArrayProtoValues)
|
||||
.setStreams(enableStreams);
|
||||
cx->setOffthreadIonCompilationEnabled(offthreadCompilation);
|
||||
cx->profilingScripts = enableCodeCoverage || enableDisassemblyDumps;
|
||||
|
||||
|
|
@ -8019,6 +8023,7 @@ main(int argc, char** argv, char** envp)
|
|||
|| !op.addBoolOption('\0', "wasm-always-baseline", "Enable wasm baseline compiler when possible")
|
||||
|| !op.addBoolOption('\0', "wasm-check-bce", "Always generate wasm bounds check, even redundant ones.")
|
||||
|| !op.addBoolOption('\0', "no-array-proto-values", "Remove Array.prototype.values")
|
||||
|| !op.addBoolOption('\0', "enable-streams", "Enable WHATWG Streams")
|
||||
#ifdef ENABLE_SHARED_ARRAY_BUFFER
|
||||
|| !op.addStringOption('\0', "shared-memory", "on/off",
|
||||
"SharedArrayBuffer and Atomics "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue