Index: test/mjsunit/regress/regress-634-debug.js |
diff --git a/test/mjsunit/regress/regress-334708.js b/test/mjsunit/regress/regress-634-debug.js |
similarity index 88% |
copy from test/mjsunit/regress/regress-334708.js |
copy to test/mjsunit/regress/regress-634-debug.js |
index f0291bbdab61128baad9df89457d045b66644f1b..17ca828c68cd4de35f6bf0608a980fe1adebb355 100644 |
--- a/test/mjsunit/regress/regress-334708.js |
+++ b/test/mjsunit/regress/regress-634-debug.js |
@@ -27,16 +27,15 @@ |
// Flags: --allow-natives-syntax |
-function foo(x, y) { |
- return Math.floor(x / y); |
+function f() { |
+ %SetAllocationTimeout(1, 0, false); |
+ a = new Array(0); |
+ assertEquals(0, a.length); |
+ assertEquals(0, a.length); |
+ %SetAllocationTimeout(-1, -1, true); |
} |
-function bar(x, y) { |
- return foo(x + 1, y + 1); |
-} |
- |
-foo(16, "4"); |
- |
-bar(64, 2); |
-%OptimizeFunctionOnNextCall(bar); |
-bar(64, 2); |
+f(); |
+f(); |
+%OptimizeFunctionOnNextCall(f); |
+f(); |