Index: test/mjsunit/compiler/osr-assert.js |
diff --git a/test/mjsunit/compiler/osr-two.js b/test/mjsunit/compiler/osr-assert.js |
similarity index 90% |
copy from test/mjsunit/compiler/osr-two.js |
copy to test/mjsunit/compiler/osr-assert.js |
index 8ac4c2cc128180ea6843c7c07591b1365f3b37f7..94b901fd4f764b19c7e374b3e7c6013fa5bbd326 100644 |
--- a/test/mjsunit/compiler/osr-two.js |
+++ b/test/mjsunit/compiler/osr-assert.js |
@@ -27,18 +27,15 @@ |
// Flags: --use-osr |
-function f(x) { |
- var sum = 0; |
- var outer = 100; |
+function f(x, b, c) { |
+ var outer = 1000000; |
+ var a = 1; |
while (outer > 0) { |
- var inner = 100000; |
- while (inner > 0) { |
- sum += x; |
- inner--; |
- } |
+ a = a + 5; |
+ assertEquals(b + 1, c); |
outer--; |
} |
- return sum; |
+ return a + 4; |
} |
-assertEquals(50000000, f(5)); |
+assertEquals(5000005, f(5, "122", "1221")); |