mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #3049 - Re-enable loongarch64 asm.js and native regexp
This commit is contained in:
parent
11c7117a26
commit
2a171ff52a
5 changed files with 3 additions and 32 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue