Index: test/mjsunit/compiler/optimized-for-in.js |
diff --git a/test/mjsunit/compiler/optimized-for-in.js b/test/mjsunit/compiler/optimized-for-in.js |
index 9c756aafa7638c02e33e0432b162b600cbe661b4..f3ff6beb0572e5b4a4077b1094fb61fa9a12f7c2 100644 |
--- a/test/mjsunit/compiler/optimized-for-in.js |
+++ b/test/mjsunit/compiler/optimized-for-in.js |
@@ -251,9 +251,7 @@ function osr_inner(t, limit) { |
if (t.hasOwnProperty(x)) { |
for (var i = 0; i < t[x].length; i++) { |
r += t[x][i]; |
- if (i === limit) { |
- %OptimizeFunctionOnNextCall(osr_inner, "osr"); |
- } |
+ if (i === limit) %OptimizeOsr(); |
} |
r += x; |
} |
@@ -267,9 +265,7 @@ function osr_outer(t, osr_after) { |
for (var i = 0; i < t[x].length; i++) { |
r += t[x][i]; |
} |
- if (x === osr_after) { |
- %OptimizeFunctionOnNextCall(osr_outer, "osr"); |
- } |
+ if (x === osr_after) %OptimizeOsr(); |
r += x; |
} |
return r; |
@@ -279,9 +275,7 @@ function osr_outer_and_deopt(t, osr_after) { |
var r = 1; |
for (var x in t) { |
r += x; |
- if (x == osr_after) { |
- %OptimizeFunctionOnNextCall(osr_outer_and_deopt, "osr"); |
- } |
+ if (x == osr_after) %OptimizeOsr(); |
} |
return r; |
} |