Description[turbofan] Revert invalid optimization of flooring division.
The optimization
NumberFloor(NumberDivide(lhs, rhs))
to
NumberToInt32(NumberDivide(lhs, rhs))
for potentially negative lhs is not valid, since Math.floor rounds
towards -infinity, whereas ToInt32 truncates.
BUG=chromium:699282
R=jarin@chromium.org
Review-Url: https://codereview.chromium.org/2743673002
Cr-Commit-Position: refs/heads/master@{#43699}
Committed: https://chromium.googlesource.com/v8/v8/+/18be5d7057d794dbe3b663dfc17d3e512f2b55e3
Patch Set 1 #
Messages
Total messages: 13 (7 generated)
|