Index: test/mjsunit/polymorph-arrays.js |
diff --git a/test/mjsunit/polymorph-arrays.js b/test/mjsunit/polymorph-arrays.js |
index 2bb0433214e934d5812f14d221dfd5dff8ead4ad..6a05c9f01359a00f884a1f9481475e8a8b7e00b7 100644 |
--- a/test/mjsunit/polymorph-arrays.js |
+++ b/test/mjsunit/polymorph-arrays.js |
@@ -36,7 +36,7 @@ function init_sparse_array(a) { |
for (var i = 0; i < 10; ++i ){ |
a[i] = i; |
} |
- a[5000000] = 256; |
+ a[200000] = 256; |
return %NormalizeElements(a); |
} |
@@ -115,7 +115,7 @@ function testPolymorphicStores() { |
var sparse_object_array = new Object; |
var js_array = new Array(10); |
var sparse_js_array = []; |
- sparse_js_array.length = 5000001; |
+ sparse_js_array.length = 200001; |
init_array(object_array); |
init_array(js_array); |
@@ -134,7 +134,8 @@ function testPolymorphicStores() { |
var sparse_object_array = new Object; |
var js_array = new Array(10); |
var sparse_js_array = %NormalizeElements([]); |
- sparse_js_array.length = 5000001; |
+ sparse_js_array.length = 200001; |
+ assertTrue(%HasDictionaryElements(sparse_js_array)); |
init_array(object_array); |
init_array(js_array); |