blob: 6023e7802fa4947b98486c58ecaf0f7d851f654a [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
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();