| //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
| valueOf: function() { return this.i; } |
| var result = String.fromCharCode(a); |
| // Busy work just to allow the DFG and FTL to optimize this. If the above causes |
| // us to speculation fail out to the baseline, this busy work will take a lot longer |
| // This loop below also gets the DFG to compile this function sooner. |
| for (var i = 0; i < 1000; i++) |
| // The layout test doesn't like too many iterations and may time out. |
| for (var i = 0; i <= iterations; i++) { |
| if (resultStr == 'A1000') |
| if (result != expectedResult) |
| throw "Bad result: " + result; |