blob: ddcaae1f1039b9432e003849d8d73f4ccf246948 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo() {
var result = 0;
for (var i = 0; i < arguments.length; ++i)
result += arguments[i];
return result;
}
function bar() {
return foo.apply(this, arguments);
}
function baz() {
return bar(1, 2, 3, 4);
}
noInline(baz);
for (var i = 0; i < 1000000; ++i) {
var result = baz();
if (result != 10)
throw "Error: bad result: " + result;
}