Skip to content

Commit

Permalink
Bug 1509441: Unify wasm compilation switches under the --wasm-compile…
Browse files Browse the repository at this point in the history
…r umbrella; r=lth

--HG--
extra : rebase_source : 47a370c182bacc170bf83be3e2b3dbdbc488a787
  • Loading branch information
bnjbvr committed Jan 23, 2019
1 parent dc2f00a commit b6e3057
Show file tree
Hide file tree
Showing 42 changed files with 91 additions and 74 deletions.
2 changes: 1 addition & 1 deletion dom/workers/RuntimeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void LoadContextOptions(const char* aPrefName, void* /* aClosure */) {
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_baselinejit")))
.setWasmIon(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_ionjit")))
#ifdef ENABLE_WASM_CRANELIFT
.setWasmForceCranelift(
.setWasmCranelift(
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_cranelift")))
#endif
#ifdef ENABLE_WASM_REFTYPES
Expand Down
4 changes: 2 additions & 2 deletions js/src/builtin/TestingFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static bool WasmThreadsSupported(JSContext* cx, unsigned argc, Value* vp) {
CallArgs args = CallArgsFromVp(argc, vp);
bool isSupported = wasm::HasSupport(cx);
#ifdef ENABLE_WASM_CRANELIFT
if (cx->options().wasmForceCranelift()) {
if (cx->options().wasmCranelift()) {
isSupported = false;
}
#endif
Expand All @@ -659,7 +659,7 @@ static bool WasmBulkMemSupported(JSContext* cx, unsigned argc, Value* vp) {
#ifdef ENABLE_WASM_BULKMEM_OPS
bool isSupported = true;
# ifdef ENABLE_WASM_CRANELIFT
if (cx->options().wasmForceCranelift()) {
if (cx->options().wasmCranelift()) {
isSupported = false;
}
# endif
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/jit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def main(argv):
if all(['--no-asmjs' in flags for flags in test_flags]):
options.asmjs_enabled = False
options.wasm_enabled = False
if all(['--no-wasm' in flags for flags in test_flags]):
if all(['--wasm-compiler=none' in flags for flags in test_flags]):
options.asmjs_enabled = False
options.wasm_enabled = False

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1330339.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete

if (!wasmDebuggingIsSupported())
throw "TestComplete";
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1330489-sps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete

load(libdir + "asserts.js");

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1330489.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete

load(libdir + "asserts.js");

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1330491.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete

if (!wasmDebuggingIsSupported())
throw "TestComplete";
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1331064.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()

load(libdir + "asserts.js");

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1331592.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete

if (!wasmDebuggingIsSupported())
throw "TestComplete";
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1332493.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// Checking in debug frame is initialized properly during stack overflow.

var dbg;
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/bug1343579.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Checking if Debugger.Script.isInCatchScope return false for wasm.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-06-onEnterFrame-null.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// Checking resumption values for 'null' at onEnterFrame.

load(libdir + "asserts.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-06-onPop-null.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; exitstatus: 3; skip-if: !wasmDebuggingIsSupported()
// Checking resumption values for 'null' at frame's onPop.

load(libdir + "asserts.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-06.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; error: TestComplete; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; error: TestComplete; skip-if: !wasmDebuggingIsSupported()
// Tests that wasm module scripts raises onEnterFrame and onLeaveFrame events.

load(libdir + "asserts.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-07.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Checking existence of all frame.offset references during onEnterFrame,
// onLeaveFrame and onStep events in the source code, and that we can
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-08.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Checking if we destroying work registers by breakpoint/step handler.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-09.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Tests debugEnabled state of wasm when allowUnobservedAsmJS == true.

load(libdir + "asserts.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-10.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Tests that wasm module scripts has inspectable locals.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-11.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Test single-stepping where the TLS register can be evicted by a non-trivial
// function body.
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-12.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Tests that wasm module scripts have special URLs.

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-13.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline
// |jit-test| test-also-wasm-compiler-ion
// Tests that wasm module scripts has inspectable globals and memory.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-breakpoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Tests that wasm module scripts handles basic breakpoint operations.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-get-return.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Tests that wasm frame opPop event can access function resumption value.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-getAllColumnOffsets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Tests that wasm module scripts have column and line to bytecode offset
// information when source text is generated.
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-jseval.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline
// |jit-test| test-also-wasm-compiler-ion
// Tests that JS can be evaluated on wasm module scripts frames.

load(libdir + "wasm.js");
Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-responseurls.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()
// Tests that wasm module can accept URL and sourceMapURL from response
// when instantiateStreaming is used.

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-sourceMappingURL.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Tests that wasm module sourceMappingURL section is parsed.

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/debug/wasm-step.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// |jit-test| test-also-no-wasm-baseline; skip-if: !wasmDebuggingIsSupported()
// |jit-test| test-also-wasm-compiler-ion; skip-if: !wasmDebuggingIsSupported()

// Tests that wasm module scripts raises onEnterFrame and onLeaveFrame events.

Expand Down
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/wasm/bench/directives.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering; include:wasm.js
|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering; include:wasm.js
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/wasm/directives.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering; include:wasm.js
|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering; include:wasm.js
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/wasm/regress/directives.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering; include:wasm.js
|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering; include:wasm.js
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/wasm/spec/directives.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering; include:wasm-testharness.js
|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering; include:wasm-testharness.js
2 changes: 1 addition & 1 deletion js/src/jit-test/tests/wasm/timeout/directives.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering
|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering

10 changes: 5 additions & 5 deletions js/src/jsapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class JS_PUBLIC_API ContextOptions {
wasmBaseline_(true),
wasmIon_(true),
#ifdef ENABLE_WASM_CRANELIFT
wasmForceCranelift_(false),
wasmCranelift_(false),
#endif
#ifdef ENABLE_WASM_REFTYPES
wasmGc_(false),
Expand Down Expand Up @@ -476,9 +476,9 @@ class JS_PUBLIC_API ContextOptions {
}

#ifdef ENABLE_WASM_CRANELIFT
bool wasmForceCranelift() const { return wasmForceCranelift_; }
ContextOptions& setWasmForceCranelift(bool flag) {
wasmForceCranelift_ = flag;
bool wasmCranelift() const { return wasmCranelift_; }
ContextOptions& setWasmCranelift(bool flag) {
wasmCranelift_ = flag;
return *this;
}
#endif
Expand Down Expand Up @@ -595,7 +595,7 @@ class JS_PUBLIC_API ContextOptions {
bool wasmBaseline_ : 1;
bool wasmIon_ : 1;
#ifdef ENABLE_WASM_CRANELIFT
bool wasmForceCranelift_ : 1;
bool wasmCranelift_ : 1;
#endif
#ifdef ENABLE_WASM_REFTYPES
bool wasmGc_ : 1;
Expand Down
4 changes: 2 additions & 2 deletions js/src/shell/fuzz-flags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@

# wasm flags
--wasm-gc
--no-wasm-baseline
--no-wasm-ion
--wasm-compiler=ion
--wasm-compiler=baseline
--test-wasm-await-tier2

# CPU instruction set-related
Expand Down
65 changes: 41 additions & 24 deletions js/src/shell/js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ static bool enableNativeRegExp = false;
static bool enableSharedMemory = SHARED_MEMORY_DEFAULT;
static bool enableWasmBaseline = false;
static bool enableWasmIon = false;
#ifdef ENABLE_WASM_CRANELIFT
static bool wasmForceCranelift = false;
#endif
static bool enableWasmCranelift = false;
#ifdef ENABLE_WASM_REFTYPES
static bool enableWasmGc = false;
#endif
Expand Down Expand Up @@ -10184,22 +10182,45 @@ static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
enableBaseline = !op.getBoolOption("no-baseline");
enableIon = !op.getBoolOption("no-ion");
enableAsmJS = !op.getBoolOption("no-asmjs");
enableWasm = !op.getBoolOption("no-wasm");
enableNativeRegExp = !op.getBoolOption("no-native-regexp");
enableWasmBaseline = !op.getBoolOption("no-wasm-baseline");
enableWasmIon = !op.getBoolOption("no-wasm-ion");
#ifdef ENABLE_WASM_CRANELIFT
wasmForceCranelift = op.getBoolOption("wasm-force-cranelift");
#endif

// Default values for wasm.
enableWasm = true;
enableWasmBaseline = true;
enableWasmIon = true;
if (const char* str = op.getStringOption("wasm-compiler")) {
if (strcmp(str, "none") == 0) {
enableWasm = false;
} else if (strcmp(str, "baseline") == 0) {
// Baseline is enabled by default.
enableWasmIon = false;
} else if (strcmp(str, "ion") == 0) {
// Ion is enabled by default.
enableWasmBaseline = false;
} else if (strcmp(str, "cranelift") == 0) {
enableWasmBaseline = false;
enableWasmIon = false;
enableWasmCranelift = true;
} else if (strcmp(str, "baseline+ion") == 0) {
// Default.
} else if (strcmp(str, "baseline+cranelift") == 0) {
// Baseline is enabled by default.
enableWasmIon = false;
enableWasmCranelift = true;
} else {
return OptionFailure("wasm-compiler", str);
}
}

#ifdef ENABLE_WASM_REFTYPES
enableWasmGc = op.getBoolOption("wasm-gc");
# ifdef ENABLE_WASM_CRANELIFT
if (enableWasmGc && wasmForceCranelift) {
if (enableWasmGc && enableWasmCranelift) {
fprintf(stderr,
"Do not combine --wasm-gc and --wasm-force-cranelift, they are "
"Do not combine --wasm-gc and --wasm-compiler=cranelift, they are "
"incompatible.\n");
}
enableWasmGc = enableWasmGc && !wasmForceCranelift;
enableWasmGc = enableWasmGc && !enableWasmCranelift;
# endif
#endif
enableWasmVerbose = op.getBoolOption("wasm-verbose");
Expand All @@ -10218,7 +10239,7 @@ static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
.setWasmBaseline(enableWasmBaseline)
.setWasmIon(enableWasmIon)
#ifdef ENABLE_WASM_CRANELIFT
.setWasmForceCranelift(wasmForceCranelift)
.setWasmCranelift(enableWasmCranelift)
#endif
#ifdef ENABLE_WASM_REFTYPES
.setWasmGc(enableWasmGc)
Expand Down Expand Up @@ -10535,7 +10556,7 @@ static void SetWorkerContextOptions(JSContext* cx) {
.setWasmBaseline(enableWasmBaseline)
.setWasmIon(enableWasmIon)
#ifdef ENABLE_WASM_CRANELIFT
.setWasmForceCranelift(wasmForceCranelift)
.setWasmCranelift(enableWasmCranelift)
#endif
#ifdef ENABLE_WASM_REFTYPES
.setWasmGc(enableWasmGc)
Expand Down Expand Up @@ -10932,16 +10953,12 @@ int main(int argc, char** argv, char** envp) {
!op.addBoolOption('\0', "ion", "Enable IonMonkey (default)") ||
!op.addBoolOption('\0', "no-ion", "Disable IonMonkey") ||
!op.addBoolOption('\0', "no-asmjs", "Disable asm.js compilation") ||
!op.addBoolOption('\0', "no-wasm", "Disable WebAssembly compilation") ||
!op.addBoolOption('\0', "no-wasm-baseline",
"Disable wasm baseline compiler") ||
!op.addBoolOption('\0', "no-wasm-ion", "Disable wasm ion compiler")
#ifdef ENABLE_WASM_CRANELIFT
|| !op.addBoolOption('\0', "wasm-force-cranelift",
"Enable wasm Cranelift compiler")
#endif
|| !op.addBoolOption('\0', "wasm-verbose",
"Enable WebAssembly verbose logging") ||
!op.addStringOption(
'\0', "wasm-compiler", "[option]",
"Choose to enable a subset of the wasm compilers (valid options are "
"none/baseline/ion/cranelift/baseline+ion/baseline+cranelift)") ||
!op.addBoolOption('\0', "wasm-verbose",
"Enable WebAssembly verbose logging") ||
!op.addBoolOption('\0', "test-wasm-await-tier2",
"Forcibly activate tiering and block "
"instantiation on completion of tier2")
Expand Down
8 changes: 4 additions & 4 deletions js/src/tests/lib/jittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ def from_file(cls, path, options):
elif name == 'test-also-noasmjs':
if options.asmjs_enabled:
test.test_also.append(['--no-asmjs'])
elif name == 'test-also-no-wasm-baseline':
elif name == 'test-also-wasm-compiler-ion':
if options.wasm_enabled:
test.test_also.append(['--no-wasm-baseline'])
elif name == 'test-also-no-wasm-ion':
test.test_also.append(['--wasm-compiler=ion'])
elif name == 'test-also-wasm-compiler-baseline':
if options.wasm_enabled:
test.test_also.append(['--no-wasm-ion'])
test.test_also.append(['--wasm-compiler=baseline'])
elif name == 'test-also-wasm-tiering':
if options.wasm_enabled:
test.test_also.append(['--test-wasm-await-tier2'])
Expand Down
2 changes: 1 addition & 1 deletion js/src/tests/lib/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
],
# Interpreter-only, for tools that cannot handle binary code generation.
'interp': [
['--no-baseline', '--no-asmjs', '--no-wasm', '--no-native-regexp']
['--no-baseline', '--no-asmjs', '--wasm-compiler=none', '--no-native-regexp']
],
'none': [
[] # no flags, normal baseline and ion
Expand Down
2 changes: 1 addition & 1 deletion js/src/wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ update:
--use-sync \
--js ../jit-test/tests/wasm/spec \
--html ../../../testing/web-platform/mozilla/tests/wasm
echo "|jit-test| test-also-no-wasm-baseline; test-also-no-wasm-ion; test-also-wasm-tiering; include:wasm-testharness.js" > ../jit-test/tests/wasm/spec/directives.txt
echo "|jit-test| test-also-wasm-compiler-ion; test-also-wasm-compiler-baseline; test-also-wasm-tiering; include:wasm-testharness.js" > ../jit-test/tests/wasm/spec/directives.txt
echo "|jit-test| skip-if:true" > ../jit-test/tests/wasm/spec/harness/directives.txt

run:
Expand Down
2 changes: 1 addition & 1 deletion js/src/wasm/WasmCompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ CompileArgs::CompileArgs(JSContext* cx, ScriptedCaller&& scriptedCaller)
baselineEnabled = cx->options().wasmBaseline();
ionEnabled = cx->options().wasmIon();
#ifdef ENABLE_WASM_CRANELIFT
craneliftEnabled = cx->options().wasmForceCranelift();
craneliftEnabled = cx->options().wasmCranelift();
#else
craneliftEnabled = false;
#endif
Expand Down
Loading

0 comments on commit b6e3057

Please sign in to comment.