aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js')
-rw-r--r--deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js b/deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js
index 9a36c141b7..704af744d2 100644
--- a/deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js
+++ b/deps/v8/test/mjsunit/regress/call-function-in-effect-context-deopt.js
@@ -31,7 +31,7 @@ function f(deopt, osr) {
var result = "result";
%_CallFunction(0, 0, function() {});
var dummy = deopt + 0;
- if (osr) while (%GetOptimizationStatus(f) == 2) {}
+ for (var i = 0; osr && i < 2; i++) %OptimizeOsr();
return result;
}