blob: de8b0f2022f7af1cb8c594bd58afb44b1a210c43 [file] [log] [blame]
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);