[gjs: 1/2] engine: Set baseline interpreter to enable_jit




commit 1548b44f5e9e8f78b6c8d1785633cec4a30c0611
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Sun Feb 21 10:39:12 2021 +0300

    engine: Set baseline interpreter to enable_jit
    
    This seems to be the third option that needs to be set to 0 to
    completely disable JIT.

 gjs/engine.cpp | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index be5da5ba..4908c775 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -245,6 +245,8 @@ JSContext* gjs_create_js_context(GjsContextPrivate* uninitialized_gjs) {
         cx, JSJitCompilerOption::JSJITCOMPILER_ION_ENABLE, value);
     JS_SetGlobalJitCompilerOption(
         cx, JSJitCompilerOption::JSJITCOMPILER_BASELINE_ENABLE, value);
+    JS_SetGlobalJitCompilerOption(
+        cx, JSJitCompilerOption::JSJITCOMPILER_BASELINE_INTERPRETER_ENABLE, value);
 
     return cx;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]