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-21 09:53:24 +0100
commit890bb438b000821586c076ed8f880e95ea03f075 (patch)
tree297e11dfda4adf5568ffb7668d78f4a282b7773d /js/src/jsapi.cpp
parent85e33523c3683fdb8a3fd45f8c317fb30d8ca8a4 (diff)
downloadUXP-890bb438b000821586c076ed8f880e95ea03f075.tar
UXP-890bb438b000821586c076ed8f880e95ea03f075.tar.gz
UXP-890bb438b000821586c076ed8f880e95ea03f075.tar.lz
UXP-890bb438b000821586c076ed8f880e95ea03f075.tar.xz
UXP-890bb438b000821586c076ed8f880e95ea03f075.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;