From 5041ed183265875a3724a4d4bc5990dbe0fda983 Mon Sep 17 00:00:00 2001 From: Eric Faust Date: Tue, 9 Oct 2018 15:41:50 -0700 Subject: [PATCH] Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/regexp/ (r=jorendorff) --HG-- extra : rebase_source : cb9f3b98675bebe13bfe63ffcfb46242b2b6db6a --- js/src/jit-test/tests/regexp/bug1445907.js | 5 ++--- js/src/jit-test/tests/regexp/clone-statics.js | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/src/jit-test/tests/regexp/bug1445907.js b/js/src/jit-test/tests/regexp/bug1445907.js index 75b23753eaf9..7c56bc8a8a34 100644 --- a/js/src/jit-test/tests/regexp/bug1445907.js +++ b/js/src/jit-test/tests/regexp/bug1445907.js @@ -1,12 +1,11 @@ +// |jit-test| skip-if: !wasmIsSupported() + // On ARM64, we failed to save x28 properly when generating code for the regexp // matcher. // // There's wasm and Debugger code here because the combination forces the use of // x28 and exposes the bug when running on the simulator. -if (!wasmIsSupported()) - quit(); - var g = newGlobal(''); var dbg = new Debugger(g); g.eval(`var m = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func (export "test")))')))`); diff --git a/js/src/jit-test/tests/regexp/clone-statics.js b/js/src/jit-test/tests/regexp/clone-statics.js index ea2fa1e2bb35..ee81e567566d 100644 --- a/js/src/jit-test/tests/regexp/clone-statics.js +++ b/js/src/jit-test/tests/regexp/clone-statics.js @@ -1,5 +1,4 @@ -if (helperThreadCount() === 0) - quit(0); +// |jit-test| skip-if: helperThreadCount() === 0 offThreadCompileScript(` function foo(x, {}) {