blob: 38b63ac72fa0c182703514b5110e8c67150d08ab [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(o) {
var result = 0;
for (var i = 0; i < 100; ++i)
result += o.f;
return result;
}
noInline(foo);
var p = {f:42};
var o = Object.create(p);
for (var i = 0; i < 10000; ++i) {
p["i" + i] = i;
var result = foo(o);
if (result != 42 * 100)
throw "Error: bad result: " + result;
}