mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-15 03:39:00 +09:00
Unhook Unboxed Objects option
This commit is contained in:
parent
69e171fb9a
commit
3c6346afa9
5 changed files with 12 additions and 24 deletions
|
|
@ -6434,9 +6434,6 @@ JS_SetGlobalJitCompilerOption(JSContext* cx, JSJitCompilerOption opt, uint32_t v
|
||||||
}
|
}
|
||||||
jit::JitOptions.jumpThreshold = value;
|
jit::JitOptions.jumpThreshold = value;
|
||||||
break;
|
break;
|
||||||
case JSJITCOMPILER_UNBOXED_OBJECTS:
|
|
||||||
jit::JitOptions.disableUnboxedObjects = !value;
|
|
||||||
break;
|
|
||||||
case JSJITCOMPILER_ASMJS_ATOMICS_ENABLE:
|
case JSJITCOMPILER_ASMJS_ATOMICS_ENABLE:
|
||||||
jit::JitOptions.asmJSAtomicsEnable = !!value;
|
jit::JitOptions.asmJSAtomicsEnable = !!value;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -5794,7 +5794,6 @@ JS_SetOffthreadIonCompilationEnabled(JSContext* cx, bool enabled);
|
||||||
Register(BASELINE_ENABLE, "baseline.enable") \
|
Register(BASELINE_ENABLE, "baseline.enable") \
|
||||||
Register(OFFTHREAD_COMPILATION_ENABLE, "offthread-compilation.enable") \
|
Register(OFFTHREAD_COMPILATION_ENABLE, "offthread-compilation.enable") \
|
||||||
Register(JUMP_THRESHOLD, "jump-threshold") \
|
Register(JUMP_THRESHOLD, "jump-threshold") \
|
||||||
Register(UNBOXED_OBJECTS, "unboxed_objects") \
|
|
||||||
Register(ASMJS_ATOMICS_ENABLE, "asmjs.atomics.enable") \
|
Register(ASMJS_ATOMICS_ENABLE, "asmjs.atomics.enable") \
|
||||||
Register(WASM_TEST_MODE, "wasm.test-mode") \
|
Register(WASM_TEST_MODE, "wasm.test-mode") \
|
||||||
Register(WASM_FOLD_OFFSETS, "wasm.fold-offsets")
|
Register(WASM_FOLD_OFFSETS, "wasm.fold-offsets")
|
||||||
|
|
|
||||||
|
|
@ -7276,9 +7276,6 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
||||||
if (op.getBoolOption("wasm-check-bce"))
|
if (op.getBoolOption("wasm-check-bce"))
|
||||||
jit::JitOptions.wasmAlwaysCheckBounds = true;
|
jit::JitOptions.wasmAlwaysCheckBounds = true;
|
||||||
|
|
||||||
if (op.getBoolOption("no-unboxed-objects"))
|
|
||||||
jit::JitOptions.disableUnboxedObjects = true;
|
|
||||||
|
|
||||||
if (const char* str = op.getStringOption("cache-ir-stubs")) {
|
if (const char* str = op.getStringOption("cache-ir-stubs")) {
|
||||||
if (strcmp(str, "on") == 0)
|
if (strcmp(str, "on") == 0)
|
||||||
jit::JitOptions.disableCacheIR = false;
|
jit::JitOptions.disableCacheIR = false;
|
||||||
|
|
|
||||||
|
|
@ -1427,8 +1427,6 @@ ReloadPrefsCallback(const char* pref, void* data)
|
||||||
|
|
||||||
bool extraWarnings = Preferences::GetBool(JS_OPTIONS_DOT_STR "strict");
|
bool extraWarnings = Preferences::GetBool(JS_OPTIONS_DOT_STR "strict");
|
||||||
|
|
||||||
bool unboxedObjects = Preferences::GetBool(JS_OPTIONS_DOT_STR "unboxed_objects");
|
|
||||||
|
|
||||||
sSharedMemoryEnabled = Preferences::GetBool(JS_OPTIONS_DOT_STR "shared_memory");
|
sSharedMemoryEnabled = Preferences::GetBool(JS_OPTIONS_DOT_STR "shared_memory");
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
@ -1457,8 +1455,6 @@ ReloadPrefsCallback(const char* pref, void* data)
|
||||||
useBaselineEager ? 0 : -1);
|
useBaselineEager ? 0 : -1);
|
||||||
JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_ION_WARMUP_TRIGGER,
|
JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_ION_WARMUP_TRIGGER,
|
||||||
useIonEager ? 0 : -1);
|
useIonEager ? 0 : -1);
|
||||||
JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_UNBOXED_OBJECTS,
|
|
||||||
unboxedObjects);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XPCJSContext::~XPCJSContext()
|
XPCJSContext::~XPCJSContext()
|
||||||
|
|
|
||||||
|
|
@ -1264,7 +1264,6 @@ pref("javascript.options.strict", false);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
pref("javascript.options.strict.debug", false);
|
pref("javascript.options.strict.debug", false);
|
||||||
#endif
|
#endif
|
||||||
pref("javascript.options.unboxed_objects", false);
|
|
||||||
pref("javascript.options.baselinejit", true);
|
pref("javascript.options.baselinejit", true);
|
||||||
pref("javascript.options.ion", true);
|
pref("javascript.options.ion", true);
|
||||||
pref("javascript.options.asmjs", true);
|
pref("javascript.options.asmjs", true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue