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..56d64be4a91499d85c6faeb632c80c766b94145f 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(f); |
return result; |
} |