commit 7055f54278ad8aad10e659d19dce90df88e572ef parent 0db3a0b21063aaefbc6c0db4f17774f5372cc478 Author: Ryan Hunt <rhunt@eqrion.net> Date: Thu, 18 Dec 2025 14:55:07 +0000 Bug 2002635 - Disable asm.js. r=bvisness Differential Revision: https://phabricator.services.mozilla.com/D275817 Diffstat:
5 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/js/src/jit-test/tests/asm.js/directives.txt b/js/src/jit-test/tests/asm.js/directives.txt @@ -1 +1 @@ -|jit-test| test-also=--no-asmjs; test-also=--disable-wasm-huge-memory; skip-variant-if: --disable-wasm-huge-memory, !wasmHugeMemorySupported(); +|jit-test| test-also=--asmjs; test-also=--disable-wasm-huge-memory; skip-variant-if: --disable-wasm-huge-memory, !wasmHugeMemorySupported(); diff --git a/js/src/jit-test/tests/debug/Object-createSource-forceEnableAsmJS.js b/js/src/jit-test/tests/debug/Object-createSource-forceEnableAsmJS.js @@ -1,4 +1,4 @@ -// |jit-test| skip-if: !wasmDebuggingEnabled() +// |jit-test| --asmjs; skip-if: !wasmDebuggingEnabled() gczeal(0); diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp @@ -12958,7 +12958,7 @@ bool InitOptionParser(OptionParser& op) { -1) || !op.addBoolOption('\0', "only-inline-selfhosted", "Only inline selfhosted functions") || - !op.addBoolOption('\0', "no-asmjs", "Disable asm.js compilation") || + !op.addBoolOption('\0', "asmjs", "Enable asm.js compilation") || !op.addStringOption( '\0', "wasm-compiler", "[option]", "Choose to enable a subset of the wasm compilers, valid options are " @@ -13756,7 +13756,7 @@ bool SetContextOptions(JSContext* cx, const OptionParser& op) { } bool SetContextWasmOptions(JSContext* cx, const OptionParser& op) { - enableAsmJS = !op.getBoolOption("no-asmjs"); + enableAsmJS = op.getBoolOption("asmjs"); enableWasm = true; enableWasmBaseline = true; diff --git a/js/src/tests/lib/tests.py b/js/src/tests/lib/tests.py @@ -76,7 +76,6 @@ JITFLAGS = { [ "--no-blinterp", "--no-baseline", - "--no-asmjs", "--wasm-compiler=none", "--no-native-regexp", ] diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -9521,7 +9521,7 @@ # asm.js - name: javascript.options.asmjs type: bool - value: true + value: false mirror: always # Whether to throw a TypeError if asm.js code hits validation failure.