Reviewers: danno,
Description:
Reduce size of array in polymorph-arrays.js.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/686273003/
Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+4, -3 lines):
M test/mjsunit/polymorph-arrays.js
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);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.