Issue #3049 - Disable unsupported JIT features in loongarch64 contexts

This commit is contained in:
Basilisk-Dev 2026-04-23 21:42:15 -04:00 committed by wuggy
commit 08d7b89ee5
3 changed files with 33 additions and 4 deletions

View file

@ -1420,6 +1420,14 @@ ReloadPrefsCallback(const char* pref, void* data)
"throw_on_asmjs_validation_failure");
bool useNativeRegExp = Preferences::GetBool(JS_OPTIONS_DOT_STR "native_regexp") && !safeMode;
#if defined(JS_CODEGEN_LOONGARCH64)
// The loongarch64 port is baseline-only for now.
useIon = false;
useAsmJS = false;
useWasm = false;
useWasmBaseline = false;
#endif
bool parallelParsing = Preferences::GetBool(JS_OPTIONS_DOT_STR "parallel_parsing");
bool offthreadIonCompilation = Preferences::GetBool(JS_OPTIONS_DOT_STR
"ion.offthread_compilation");