blob: f2e46b3370f30b14d80a6cfc4aaa989b5aa8f3f0 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
"use strict";
function foo(...rest) {
return rest;
}
noInline(foo);
const iters = 900000;
function test1() {
let o = {};
let a = [];
for (let i = 0; i < iters; i++)
foo(10, 20, o, 55, a, 120.341, a, o);
}
function test2() {
function foo(...rest) { // Allow this to be inlined.
return rest;
}
let o = {};
let a = [];
for (let i = 0; i < iters; i++)
foo(10, 20, o, 55, a, 120.341, a, o);
}
test1();
test2();