From 38548e3da6118bc85d2c12f2fbd897a70492dbf3 Mon Sep 17 00:00:00 2001 From: "ager@chromium.org" Date: Mon, 9 Mar 2009 18:00:39 +0000 Subject: [PATCH] Make map collection test run faster in an attempt to make it pass on buildbot (not timeout). This consistently fails with the old build. TBR=whesse Review URL: http://codereview.chromium.org/40302 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1462 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/regress/regress-1493017.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mjsunit/regress/regress-1493017.js b/test/mjsunit/regress/regress-1493017.js index f6260573ea..75af85fa7e 100644 --- a/test/mjsunit/regress/regress-1493017.js +++ b/test/mjsunit/regress/regress-1493017.js @@ -54,8 +54,8 @@ function dotest() { var r = 1; var i = 0; var holder = new Array(); - while (i++ < 15000) { - if (i == 14000) { + while (i++ < 2001) { + if (i == 1400) { gc(); } var s = r % 100000000; @@ -66,7 +66,7 @@ function dotest() { obj[property_name] = a_B; s = s / 10; } - if ( i % 101 == 0 ) { + if (i % 101 == 0) { // Check that all object maps have no undefined properties s = r % 100000000; obj = new A(); @@ -76,7 +76,7 @@ function dotest() { } property_name = String.fromCharCode(s % 10 + 97); obj[property_name] = a_B; - s = s / 10; + s = s / 10; } } r = r * 7 % 100000000;