Index: test/mjsunit/regress/regress-crbug-616709-2.js |
diff --git a/test/mjsunit/regress/regress-585041.js b/test/mjsunit/regress/regress-crbug-616709-2.js |
similarity index 52% |
copy from test/mjsunit/regress/regress-585041.js |
copy to test/mjsunit/regress/regress-crbug-616709-2.js |
index c072ed2a15befd66232f1b649b979f6b5d2a6014..27e5d2d9da130698e4bb703382b673d6a472769c 100644 |
--- a/test/mjsunit/regress/regress-585041.js |
+++ b/test/mjsunit/regress/regress-crbug-616709-2.js |
@@ -4,18 +4,18 @@ |
// Flags: --allow-natives-syntax |
-function f(arr, i) { |
- arr[i] = 50; |
+// Make the Array prototype have dictionary properties. |
+for (var i = 0; i < 2000; i++) { |
+ Array.prototype['X'+i] = true; |
} |
-function boom(dummy) { |
- var arr = new Array(10); |
- f(arr, 10); |
- if (dummy) { |
- f(arr, -2147483648); |
- } |
+function boom(a1) { |
+ return a1[0]; |
} |
-boom(false); |
+var a = new Array(1); |
+a[0] = 0.1; |
+boom(a); |
+boom(a); |
%OptimizeFunctionOnNextCall(boom); |
-boom(false); |
+boom(a); |