Review URL: http://codereview.chromium.org/40164
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1431
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
var to_delete = [];
- var a = new Array(size);
+ var a;
+ // Make sure we test both array-backed and hash-table backed
+ // arrays.
+ if (size < 1000) {
+ a = new Array(size);
+ } else {
+ a = new Array();
+ a.length = size;
+ }
var expected = '';
var expected_reversed = '';
assertEquals(4, guard(function() { try { throw 3; } finally { throw 4; } }));
(function () {
- var iter = 10000000;
+ var iter = 1000000;
for (var i = 1; i <= iter; i++) {
try {
if (i == iter) gc();