Index: test/mjsunit/regress/regress-crbug-150545.js |
diff --git a/test/mjsunit/regress/regress-crbug-150545.js b/test/mjsunit/regress/regress-crbug-150545.js |
index 19f7e68250bac0286a89dfdd64d768501a95a07a..8238d2fa0d36ffd40be60628d333f5dcb1f0ba51 100644 |
--- a/test/mjsunit/regress/regress-crbug-150545.js |
+++ b/test/mjsunit/regress/regress-crbug-150545.js |
@@ -45,8 +45,10 @@ |
function outer() { |
inner(1,2,3); |
- // Trigger OSR. |
- while (%GetOptimizationStatus(outer, "no sync") == 2) {} |
+ // Trigger OSR, if optimization is not disabled. |
+ if (%GetOptimizationStatus(outer) != 4) { |
+ while (%GetOptimizationCount(outer) == 0) {} |
+ } |
} |
outer(); |