blob: 77cb0a40002b665cb7e2c8bc4399738557402fa7 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
"use strict";
function foo(a, b, c, d, e, f, g)
{
return 42;
}
function bar()
{
return foo();
}
function baz()
{
return bar() + 1;
}
noInline(foo);
noInline(baz);
(function() {
for (var i = 0; i < 10000000; ++i) {
var result = baz();
if (result != 43)
throw "Error: bad result: " + result;
}
})();