Index: test/mjsunit/regress/regress-1118.js |
diff --git a/test/mjsunit/regress/regress-1118.js b/test/mjsunit/regress/regress-1118.js |
index 4fd23456bea5aca9ce23a6d2fc06a2bf58bfc254..05b192d6f33d1ad1d1c6d6b77f9bf17e4cc9ba40 100644 |
--- a/test/mjsunit/regress/regress-1118.js |
+++ b/test/mjsunit/regress/regress-1118.js |
@@ -41,24 +41,10 @@ var o = new A(); |
// inlined. |
function g() { try { return o.f(); } finally { }} |
-// Optimization status (see runtime.cc): |
-// 1 - yes, 2 - no, 3 - always, 4 - never. |
- |
// This function should be optimized via OSR. |
function h() { |
- var optstatus = %GetOptimizationStatus(h); |
- if (optstatus == 4) { |
- // Optimizations are globally disabled; just run once. |
- g(); |
- } else { |
- // Run for a bit as long as h is unoptimized. |
- if (%GetOptimizationStatus(h) != 4) { |
- while (%GetOptimizationCount(h) == 0) { |
- for (var j = 0; j < 100; j++) g(); |
- } |
- } |
- g(); |
- } |
+ for (var i = 0; i < 10; i++) %OptimizeOsr(); |
+ g(); |
} |
h(); |