Commit cc1242c4 authored by Eric Faust's avatar Eric Faust
Browse files

Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/sharedbuf/ (r=jorendorff)

--HG--
extra : rebase_source : 781d8ba9f8b2327864b05ded53bf60cf857ec47a
parent 188d5bdf
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
// |jit-test| skip-if: !this.SharedArrayBuffer

// Don't assert on linking.
// Provide superficial functionality.

@@ -8,8 +10,6 @@ function $(stdlib, foreign, heap) {
    return f
}

if (this.SharedArrayBuffer) {
var heap = new SharedArrayBuffer(65536);
(new Float64Array(heap))[0] = 3.14159;
assertEq($(this, {}, heap)(), 3.14159);
}
+2 −3
Original line number Diff line number Diff line
// SharedArrayBuffer.prototype.byteLength
// |jit-test| skip-if: !this.SharedArrayBuffer

if (!this.SharedArrayBuffer)
    quit(0);
// SharedArrayBuffer.prototype.byteLength

load(libdir + "asserts.js");

+3 −2
Original line number Diff line number Diff line
// |jit-test| skip-if: !this.SharedArrayBuffer

// Test tracing of a single linked ArrayBufferViewObject.

function f() {
@@ -6,5 +8,4 @@ function f() {
    gc();
}

if (this.SharedArrayBuffer)
f();
+3 −2
Original line number Diff line number Diff line
// |jit-test| skip-if: !this.SharedArrayBuffer

// Test tracing of two views of a SharedArrayBuffer. Uses a different path.

function f() {
@@ -7,5 +9,4 @@ function f() {
    gc();
}

if (this.SharedArrayBuffer)
f();
+1 −4
Original line number Diff line number Diff line
// |jit-test| slow;
// |jit-test| slow; skip-if: !this.SharedArrayBuffer
//
// This is for testing inlining behavior in the jits.
//
@@ -14,9 +14,6 @@
// that it contains instructions like "typedarraylength", "loadtypedarrayelement",
// and "storetypedarrayelement".

if (!this.SharedArrayBuffer)
    quit();

function f(ta) {
    return (ta[2] = ta[0] + ta[1] + ta.length);
}
Loading