Index: test/mjsunit/compiler/osr-nested2.js |
diff --git a/test/mjsunit/compiler/osr-nested2.js b/test/mjsunit/compiler/osr-nested2.js |
index af8112fe125c9b7d1abbdd21adc25da684500fd7..9c45c510ef953a95d013730796a9e2662a400fb9 100644 |
--- a/test/mjsunit/compiler/osr-nested2.js |
+++ b/test/mjsunit/compiler/osr-nested2.js |
@@ -2,16 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --use-osr --turbo-osr |
+// Flags: --allow-natives-syntax --use-osr --turbo-osr |
function f() { |
var sum = 0; |
for (var i = 5; i < 6; i++) { |
- for (var j = 0; j < 1000000; j++) { |
+ for (var j = 0; j < 1000; j++) { |
var x = i + 2; |
var y = x + 5; |
var z = y + 3; |
sum += z; |
+ if (i == 21) %OptimizeOsr(); |
} |
if (true) break; |
} |
@@ -19,6 +20,6 @@ function f() { |
} |
-assertEquals(15000000, f()); |
-assertEquals(15000000, f()); |
-assertEquals(15000000, f()); |
+assertEquals(15000, f()); |
+assertEquals(15000, f()); |
+assertEquals(15000, f()); |