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
This commit is contained in:
parent
994ea00dfe
commit
38548e3da6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user