| //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
| for (var i = 0; i < 1e5; ++i) |
| function mathTruncDouble(i) |
| noInline(mathTruncDouble); |
| for (var i = 0; i < 1e5; ++i) |
| mathTruncDouble(i * 0.6); |
| function mathTruncMixed(i) |
| noInline(mathTruncMixed); |
| for (var i = 0; i < 1e5; ++i) { |
| mathTruncDouble(i * 0.6); |
| function mathTruncDoubleDoesNotCareNegativeZero(i) |
| return Math.trunc(i) | 0; |
| noInline(mathTruncDoubleDoesNotCareNegativeZero); |
| for (var i = 0; i < 1e5; ++i) |
| mathTruncDoubleDoesNotCareNegativeZero(i * 0.6); |