Chromium Code Reviews
DescriptionUse integer division in a certain case.
This optimization triggers when:
- Both operands are integers
- The result will be truncated to an integer
- The dividend is non-negative
- The divisor is positive
It is done during range analysis because it needs range information for the preconditions and because, if the optimization triggers, the range of the output can also be computed. This optimization also removes the deopt on non-zero remainder since the result is always truncated.
BUG=v8:2258
TEST=test/mjsunit/fast-div-int.js
Patch Set 1 #
Total comments: 7
Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 4 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||