Index: test/mjsunit/shared-function-tier-up-turbo.js |
diff --git a/test/mjsunit/shared-function-tier-up-turbo.js b/test/mjsunit/shared-function-tier-up-turbo.js |
index 42805a1232532335ba74888cbfe170764e585d19..aed30e8150d5386bd4df6cafbcc00cc011c9557b 100644 |
--- a/test/mjsunit/shared-function-tier-up-turbo.js |
+++ b/test/mjsunit/shared-function-tier-up-turbo.js |
@@ -13,20 +13,20 @@ |
} |
sum += f(i); |
- if (isAlwaysOptimize() || isNeverOptimize()) { |
+ if (%GetOptimizationStatus(f) == 3 || %GetOptimizationStatus(f) == 4) { |
// If we are always or never optimizing f, just exit, this test is useless. |
return; |
} |
if (i == 1) { |
// f must be interpreted code. |
- assertTrue(isInterpreted(f)); |
+ assertEquals(8, %GetOptimizationStatus(f)); |
// Run twice (i = 0, 1), then tier-up. |
%OptimizeFunctionOnNextCall(f); |
} else if (i == 2) { |
// Tier-up at i = 2 should go up to turbofan. |
- assertTrue(isTurboFanned(f)); |
+ assertEquals(7, %GetOptimizationStatus(f)); |
} |
} |
})() |