Issue #3049 - Re-enable loongarch64 asm.js and native regexp

This commit is contained in:
Basilisk-Dev 2026-04-24 21:40:37 -04:00 committed by wuggy
commit 2a171ff52a
5 changed files with 3 additions and 32 deletions

View file

@ -293,16 +293,7 @@ LoadContextOptions(const char* aPrefName, void* /* aClosure */)
bool useAsmJS = GetWorkerPref<bool>(NS_LITERAL_CSTRING("asmjs"));
bool useWasm = GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm"));
bool useIon = GetWorkerPref<bool>(NS_LITERAL_CSTRING("ion"));
#if defined(JS_CODEGEN_LOONGARCH64)
// asm.js is still disabled on loongarch64 workers.
useAsmJS = false;
#endif
bool useNativeRegExp = GetWorkerPref<bool>(NS_LITERAL_CSTRING("native_regexp"));
#if defined(JS_CODEGEN_LOONGARCH64)
useNativeRegExp = false;
#endif
JS::ContextOptions contextOptions;
contextOptions.setAsmJS(useAsmJS)