Index: test/mjsunit/array-literal-transitions.js |
diff --git a/test/mjsunit/array-literal-transitions.js b/test/mjsunit/array-literal-transitions.js |
index fab45ed72004d1aa700d61b02a1590923af8276f..ca6033b217741aeb2d7b1987f9ed19509a84271d 100644 |
--- a/test/mjsunit/array-literal-transitions.js |
+++ b/test/mjsunit/array-literal-transitions.js |
@@ -205,7 +205,9 @@ if (support_smi_only_arrays) { |
(function literals_after_osr() { |
var color = [0]; |
- // Trigger OSR. |
- while (%GetOptimizationStatus(literals_after_osr, "no sync") == 2) {} |
+ // Trigger OSR, if optimization is not disabled. |
+ if (%GetOptimizationStatus(literals_after_osr) != 4) { |
+ while (%GetOptimizationCount(literals_after_osr) == 0) {} |
+ } |
return [color[0]]; |
})(); |