Index: test/mjsunit/regress-sync-optimized-lists.js |
diff --git a/test/mjsunit/regress-sync-optimized-lists.js b/test/mjsunit/regress-sync-optimized-lists.js |
index f07c12b2cb82ef8ae2d149472aa38723e200f721..2ce60aa83694a82da5df508b349c944277d8fb77 100644 |
--- a/test/mjsunit/regress-sync-optimized-lists.js |
+++ b/test/mjsunit/regress-sync-optimized-lists.js |
@@ -13,9 +13,7 @@ function get_closure() { |
return function add_field(obj, osr) { |
obj.c = 3; |
var x = 0; |
- if (osr) { |
- %OptimizeFunctionOnNextCall(add_field, "osr"); |
- } |
+ if (osr) %OptimizeOsr(); |
for (var i = 0; i < 10; i++) { |
x = i + 1; |
} |