| valueOf: function() { return this.i; } |
| for (var j = 0; j < 10; j++) { |
| // Busy work just to allow the DFG and FTL to optimize this out. 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 = 1; i < 1000; i++) |
| result = origResult > result ? origResult : result; |
| // The layout test doesn't like too many iterations and may time out. |
| expectedResult = 505700591; |
| expectedResult = 50056912223; |
| for (var i = 0; i <= iterations; i++) { |
| if (result != expectedResult) |
| throw "Bad result: " + result; |