blob: cbb48a2525eb81b46cf30f6dd081e562746bba7c [file] [log] [blame]
//@ runFTLNoCJIT
Array.prototype.__defineGetter__(100, () => 1);
let childGlobal = createGlobalObject();
let a = new childGlobal.Array(2.3023e-320, 2.3023e-320);
let b = 2.3023e-320;
var tierWarmUpIterations = [
1, // LLInt
50, // baseline JIT
500, // DFG
10000, // FTL
];
function doTest(warmUpIterations) {
var test = new Function("a", "b", "return Array.prototype.concat.call(a, b).toString();");
noInline(test);
for (var i = 0; i < warmUpIterations; i++)
test([1, 2], [3, 4]);
test(a, b);
}
for (var warmUpIterations of tierWarmUpIterations)
doTest(warmUpIterations);