Index: test/mjsunit/count-based-osr.js |
diff --git a/test/mjsunit/count-based-osr.js b/test/mjsunit/count-based-osr.js |
index f06013083f144f54e5b7ffe9412bda4225924c4f..2df0b644f64597d827d4040fcc58e020545dda70 100644 |
--- a/test/mjsunit/count-based-osr.js |
+++ b/test/mjsunit/count-based-osr.js |
@@ -31,9 +31,8 @@ |
function osr_this() { |
var a = 1; |
- // Trigger OSR. First check if optimization is disabled. |
- if (%GetOptimizationStatus(osr_this) == 4) return 1; |
- while (%GetOptimizationCount(osr_this) == 0) {} |
+ while (%GetOptimizationCount(osr_this) == 2) ; |
return a; |
} |
assertEquals(1, osr_this()); |
+assertEquals(1, osr_this()); |