summaryrefslogtreecommitdiffstats
path: root/js/src/jsapi.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-21 09:53:24 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 02:00:13 +0100
commit80dfca45772a4d4fc5fd61630e2a812e779ec620 (patch)
treed27f6877ff95b648d5b6f42ca1bdbfd08b1ef4c3 /js/src/jsapi.cpp
parent90a44b312f35dc679982d558d18555d69e356ffb (diff)
downloadUXP-80dfca45772a4d4fc5fd61630e2a812e779ec620.tar
UXP-80dfca45772a4d4fc5fd61630e2a812e779ec620.tar.gz
UXP-80dfca45772a4d4fc5fd61630e2a812e779ec620.tar.lz
UXP-80dfca45772a4d4fc5fd61630e2a812e779ec620.tar.xz
UXP-80dfca45772a4d4fc5fd61630e2a812e779ec620.zip
Pref the use of unboxed plain objects in JS and disable by default.
This should be all that's needed for #1017, but verification of impact is definitely desired.
Diffstat (limited to 'js/src/jsapi.cpp')
-rw-r--r--js/src/jsapi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp
index 37d023bd4..6114b8157 100644
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -6410,6 +6410,9 @@ JS_SetGlobalJitCompilerOption(JSContext* cx, JSJitCompilerOption opt, uint32_t v
}
jit::JitOptions.jumpThreshold = value;
break;
+ case JSJITCOMPILER_UNBOXED_OBJECTS:
+ jit::JitOptions.disableUnboxedObjects = !value;
+ break;
case JSJITCOMPILER_ASMJS_ATOMICS_ENABLE:
jit::JitOptions.asmJSAtomicsEnable = !!value;
break;