blob: 1d8fb7d79ef579c9aa6678bd6c57d3275ff94a50 [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 = new childGlobal.Array(2.3023e-320, 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);