1 function foo(length, value) {
4 for (var i = 0; i < o.length; ++i)
5 o[i] = value; // If the array profile is too stochastic then we'll miss the fact that the first iteration has a different indexing type than the subsequent iterations.
6 for (var i = 0; i < o.length; ++i) {
7 for (var j = 0; j < o.length; ++j)
15 for (var i = array.length; i--;)
21 for (var i = 0; i < 10000; ++i)
22 result += sum(foo(5, i % 42));
24 if (result != 136889232)
25 throw "Error: bad result: " + result;