Bug 1309246 - avoids bug909997.js test failure on systems with JS_CODEGEN_NONE set. r=nbp
authorPetr Sumbera <petr.sumbera@oracle.com>
Tue, 11 Oct 2016 10:56:04 -0700
changeset 317654 5758ad60c4d870c01e45f38bed03f721b4944122
parent 317653 4a88ccd4c4857e5c0d44fe71d63e502c9911e66c
child 317655 5b64ff660e21c792feffc903631f62bd44751f08
push id30810
push userkwierso@gmail.com
push dateWed, 12 Oct 2016 21:26:14 +0000
treeherdermozilla-central@22be4ae74653 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp
bugs1309246, 909997
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1309246 - avoids bug909997.js test failure on systems with JS_CODEGEN_NONE set. r=nbp
js/src/jit-test/tests/ion/bug909997.js
--- a/js/src/jit-test/tests/ion/bug909997.js
+++ b/js/src/jit-test/tests/ion/bug909997.js
@@ -1,8 +1,15 @@
+// getJitCompilerOptions will always return array with zeros when JIT is
+// disabled. Therefore we quit now.
+if (inJit() == 'Baseline is disabled.') {
+    print("JIT is disabled.");
+    quit();
+}
+
 var wait = 100;
 
 var method_A = function() {
     for (var t = 0; t < wait; ++t) {}
 }
 
 var method_B = function() {
     for (var t = 0; t < wait; ++t) {}