blob: 16882d8e89f920b09c3505d3816d7fa4e5d4f1cd [file] [log] [blame]
function mathWithOutOfBoundsAccess(arrayA, arrayB)
{
var output = 0;
for (var i = 0; i < 10; ++i) {
output += (arrayA[i] + arrayB[i]);
}
return output;
}
noInline(mathWithOutOfBoundsAccess);
function test() {
var integerArray = [0, 1, 2, 3, 4];
var doubleArray = [0.1, 1.2, 2.3, 3.4, 4.5];
for (var i = 0; i < 1e5; ++i)
mathWithOutOfBoundsAccess(integerArray, doubleArray);
}
test();