| //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
| function foo(length, value) { |
| for (var i = 0; i < o.length; ++i) |
| 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. |
| for (var i = 0; i < o.length; ++i) { |
| for (var j = 0; j < o.length; ++j) |
| for (var i = array.length; i--;) |
| for (var i = 0; i < 10000; ++i) |
| result += sum(foo(5, i % 42)); |
| throw "Error: bad result: " + result; |