Index: test/mjsunit/regress/binop-in-effect-context-deopt.js |
diff --git a/test/mjsunit/regress/binop-in-effect-context-deopt.js b/test/mjsunit/regress/binop-in-effect-context-deopt.js |
index fb7280a0d1128c6baad81e759aad6b6bec3c6528..8d60e9015ead6bc6806bc2aa78b7f1972628c6a4 100644 |
--- a/test/mjsunit/regress/binop-in-effect-context-deopt.js |
+++ b/test/mjsunit/regress/binop-in-effect-context-deopt.js |
@@ -31,7 +31,7 @@ |
function f(a, deopt, osr) { |
var result = (a + 10, "result"); |
var dummy = deopt + 0; |
- if (osr) while (%GetOptimizationStatus(f) == 2) {} |
+ for (var i = 0; osr && i < 2; i++) %OptimizeOsr(); |
return result; |
} |