Commit e2ccac22 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Speed up a few tests that were taking too long.

Review URL: http://codereview.chromium.org/40164

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1431 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e9e86283
...@@ -74,7 +74,15 @@ for (var iterations = 0; iterations < 20; iterations++) { ...@@ -74,7 +74,15 @@ for (var iterations = 0; iterations < 20; iterations++) {
var to_delete = []; 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 = '';
var expected_reversed = ''; var expected_reversed = '';
......
...@@ -65,7 +65,7 @@ assertEquals(2, guard(function() { try { throw 2; } finally { var x = 12; } })); ...@@ -65,7 +65,7 @@ assertEquals(2, guard(function() { try { throw 2; } finally { var x = 12; } }));
assertEquals(4, guard(function() { try { throw 3; } finally { throw 4; } })); assertEquals(4, guard(function() { try { throw 3; } finally { throw 4; } }));
(function () { (function () {
var iter = 10000000; var iter = 1000000;
for (var i = 1; i <= iter; i++) { for (var i = 1; i <= iter; i++) {
try { try {
if (i == iter) gc(); if (i == iter) gc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment