Bug 1205390 - guard against asm.js compilation not being available. r=me
authorLars T Hansen <lhansen@mozilla.com>
Fri, 23 Oct 2015 14:58:54 +0200
changeset 304383 259d7b810268ec4878663870727a42c7cd885e08
parent 304382 32f7dd06ba4c1ecdbb281a0a25df3a08c6401e73
child 304384 885d1c949522a96dbaf996755d7513e64053f76f
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1205390
milestone44.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 1205390 - guard against asm.js compilation not being available. r=me
js/src/jit-test/tests/asm.js/sta-transition.js
--- a/js/src/jit-test/tests/asm.js/sta-transition.js
+++ b/js/src/jit-test/tests/asm.js/sta-transition.js
@@ -1,16 +1,19 @@
 // Transitional test cases, useful while Odin accepts both
 // "Int32Array" and "SharedInt32Array" to construct a view onto shared
 // memory but the former only when an atomic operation is referenced,
 // as per spec.  Eventually it will stop accepting "SharedInt32Array",
 // because that name is going away.
 //
 // These should not run with --no-asmjs.
 
+if (!isAsmJSCompilationAvailable())
+    quit(0);
+
 //////////////////////////////////////////////////////////////////////
 //
 // Int8Array can be used on SharedArrayBuffer, if atomics are present
 
 function m1(stdlib, ffi, heap) {
     "use asm";
 
     var i8 = new stdlib.Int8Array(heap);