diff options
author | Moonchild <moonchild@palemoon.org> | 2020-12-03 13:56:36 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-12-13 18:13:03 +0000 |
commit | bcb46bf65e5d4de038ecc052fe160b1910c1d307 (patch) | |
tree | b2d2f21d2409761ab54690480a9c7b582de3b871 /js/xpconnect | |
parent | 176f4fe20686a34e315b3b512330e1a310023854 (diff) | |
download | UXP-bcb46bf65e5d4de038ecc052fe160b1910c1d307.tar UXP-bcb46bf65e5d4de038ecc052fe160b1910c1d307.tar.gz UXP-bcb46bf65e5d4de038ecc052fe160b1910c1d307.tar.lz UXP-bcb46bf65e5d4de038ecc052fe160b1910c1d307.tar.xz UXP-bcb46bf65e5d4de038ecc052fe160b1910c1d307.zip |
Issue #1624 - Make ion inlining optimizations a pref.
This also adds it to JS_SetGlobalJitCompilerOption()
Diffstat (limited to 'js/xpconnect')
-rw-r--r-- | js/xpconnect/src/XPCJSContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp index 511bc8a98..9bc69c957 100644 --- a/js/xpconnect/src/XPCJSContext.cpp +++ b/js/xpconnect/src/XPCJSContext.cpp @@ -1429,6 +1429,8 @@ ReloadPrefsCallback(const char* pref, void* data) bool unboxedObjects = Preferences::GetBool(JS_OPTIONS_DOT_STR "unboxed_objects"); + bool inlining = Preferences::GetBool(JS_OPTIONS_DOT_STR "ion.inlining"); + sSharedMemoryEnabled = Preferences::GetBool(JS_OPTIONS_DOT_STR "shared_memory"); #ifdef DEBUG @@ -1459,6 +1461,8 @@ ReloadPrefsCallback(const char* pref, void* data) useIonEager ? 0 : -1); JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_UNBOXED_OBJECTS, unboxedObjects); + JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_ION_INLINING, + inlining); } XPCJSContext::~XPCJSContext() |