Index: test/mjsunit/regress/string-set-char-deopt.js |
diff --git a/test/mjsunit/regress/string-set-char-deopt.js b/test/mjsunit/regress/string-set-char-deopt.js |
index c8e8538e165ffc5f276ef1ab1a2b71ad3641c0ae..03100a35054af70d96a02bc24b90efe3c614b44c 100644 |
--- a/test/mjsunit/regress/string-set-char-deopt.js |
+++ b/test/mjsunit/regress/string-set-char-deopt.js |
@@ -36,7 +36,7 @@ |
var world = " world"; |
%_OneByteSeqStringSetChar(0, (deopt(), 0x48), string); |
- if (osr) while (%GetOptimizationStatus(f) == 2) {} |
+ for (var i = 0; osr && i < 2; i++) %OptimizeOsr(); |
return string + world; |
} |