Skip to content

Commit

Permalink
Bug 1505574 - Unhook Unboxed Objects option and disable by default r=…
Browse files Browse the repository at this point in the history
…iain

Differential Revision: https://phabricator.services.mozilla.com/D24036

--HG--
extra : moz-landing-system : lando
  • Loading branch information
mgaudet committed Mar 22, 2019
1 parent 559632b commit b31262c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion js/src/jit/JitOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ DefaultJitOptions::DefaultJitOptions() {
#endif

// Toggles whether unboxed plain objects can be created by the VM.
SET_DEFAULT(disableUnboxedObjects, false);
SET_DEFAULT(disableUnboxedObjects, true);

// Toggles the optimization whereby offsets are folded into loads and not
// included in the bounds check.
Expand Down
3 changes: 0 additions & 3 deletions js/src/jsapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5562,9 +5562,6 @@ JS_PUBLIC_API void JS_SetGlobalJitCompilerOption(JSContext* cx,
case JSJITCOMPILER_TRACK_OPTIMIZATIONS:
jit::JitOptions.disableOptimizationTracking = !value;
break;
case JSJITCOMPILER_UNBOXED_OBJECTS:
jit::JitOptions.disableUnboxedObjects = !value;
break;
case JSJITCOMPILER_SPECTRE_INDEX_MASKING:
jit::JitOptions.spectreIndexMasking = !!value;
break;
Expand Down
4 changes: 0 additions & 4 deletions js/src/shell/js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10208,10 +10208,6 @@ static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
.setNativeRegExp(enableNativeRegExp)
.setAsyncStack(enableAsyncStacks);

if (op.getBoolOption("no-unboxed-objects")) {
jit::JitOptions.disableUnboxedObjects = true;
}

if (const char* str = op.getStringOption("cache-ir-stubs")) {
if (strcmp(str, "on") == 0) {
jit::JitOptions.disableCacheIR = false;
Expand Down

0 comments on commit b31262c

Please sign in to comment.