Bug 1228421 - fix intermittent failure. r=bbouvier
authorLars T Hansen <lhansen@mozilla.com>
Mon, 30 Nov 2015 10:10:48 +0100
changeset 308878 b14685d14ff56b37f960bc2a4a2cfbc742896053
parent 308877 2473c328b3267bb3b845b35302663cb3f806cbca
child 308879 d5af2a9aec9d432eacebf97fa7c6f6fe550b2411
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1228421
milestone45.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 1228421 - fix intermittent failure. r=bbouvier
js/src/jit-test/tests/basic/testApplyArrayInline.js
--- a/js/src/jit-test/tests/basic/testApplyArrayInline.js
+++ b/js/src/jit-test/tests/basic/testApplyArrayInline.js
@@ -65,34 +65,8 @@ try {
     long.length = getMaxArgs() + 1;
     f(long);
 }
 catch (e) {
     thrown = true;
     assertEq(e instanceof RangeError, true);
 }
 assertEq(thrown, true);
-
-// Test that the optimization is effective.  There's the possibility
-// of some false results here, and in release builds the margins are
-// actually small.
-
-itercount *= 2;
-
-var A = Date.now();
-assertEq(f([1,2,3,4]), 6*itercount)	// Fast path because a sane array
-var AinLoop = g_inIonInLoop;
-var B = Date.now();
-assertEq(f([1,2,3]), 7*itercount);	// Fast path because a sane array, even if short
-var BinLoop = g_inIonInLoop;
-var C = Date.now();
-assertEq(f(headroom), 7*itercount);	// Slow path because length > initializedLength
-var CinLoop = g_inIonInLoop;
-var D = Date.now();
-if (AinLoop && BinLoop && CinLoop) {
-    print("No bailout: " + (B - A));
-    print("Short: " + (C - B));
-    print("Bailout: " + (D - C));
-    assertEq((D - C) >= (B - A), true);
-    assertEq((D - C) >= (C - B), true);
-} else {
-    print("Not running perf test");
-}