summaryrefslogtreecommitdiff
path: root/js/src/jsapi.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-03 13:56:36 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-03 13:56:36 +0000
commit1a21b526928b0c5815aa3910499ac980714fa25b (patch)
tree4af73d6b72211a61873abfdb63564c7f26f73257 /js/src/jsapi.cpp
parent7f619fa9bfe5ff80b2244352c1f830fa3cef8cbc (diff)
downloaduxp-1a21b526928b0c5815aa3910499ac980714fa25b.tar.gz
Issue #1624 - Make ion inlining optimizations a pref.
This also adds it to JS_SetGlobalJitCompilerOption()
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 dab4c25a43..e9f86bde10 100644
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -6607,6 +6607,9 @@ JS_SetGlobalJitCompilerOption(JSContext* cx, JSJitCompilerOption opt, uint32_t v
case JSJITCOMPILER_ION_INTERRUPT_WITHOUT_SIGNAL:
jit::JitOptions.ionInterruptWithoutSignals = !!value;
break;
+ case JSJITCOMPILER_ION_INLINING:
+ jit::JitOptions.disableInlining = !value;
+ break;
default:
break;
}