Reviewers: William Hesse, Description: 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 Please review this at http://codereview.chromium.org/40302 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M test/mjsunit/regress/regress-1493017.js Index: test/mjsunit/regress/regress-1493017.js =================================================================== --- test/mjsunit/regress/regress-1493017.js (revision 1460) +++ test/mjsunit/regress/regress-1493017.js (working copy) @@ -54,8 +54,8 @@ 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 @@ 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 @@ } property_name = String.fromCharCode(s % 10 + 97); obj[property_name] = a_B; - s = s / 10; + s = s / 10; } } r = r * 7 % 100000000; --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
