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.
This commit is contained in:
wolfbeast 2019-03-21 09:53:24 +01:00 committed by Roy Tam
commit eb32b5d7e4
5 changed files with 22 additions and 13 deletions

View file

@ -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;