blob: 548197384d76cc160668723b6346fbb7d5b4c618 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a) {
var result = 0.0;
for (var i = 0; i < 1000; ++i) {
var o = a[i];
result += o.x + o.y;
}
return result;
}
noInline(foo);
var array = [];
for (var i = 0; i < 1000; ++i)
array.push({x:1.5, y:2.5});
for (var i = 0; i < 10000; ++i)
foo(array);