blob: 162144540d1817c3e8b15d5a3065e0c6e19eaa0e [file] [log] [blame]
//@ runMiscFTLNoCJITTest("--deferGCShouldCollectWithProbability=true", "--deferGCProbability=1.0")
function foo(a) {
return a.push(25);
}
function bar(a) {
for (let i = 0; i < a.length; i++) {
a[i] = i;
}
return foo(a);
}
noInline(bar);
for (let i = 0; i < 100; i++) {
let smallArray = [1, 2, 3, 4, 5];
bar(smallArray);
}
let largeArray = [];
for (let i = 0; i < 10000000; i++)
largeArray.push(i);
bar(largeArray);