Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 212703002: Consistently use a separate Lithium instruction for flooring division. (Closed)

Created:
6 years, 9 months ago by Sven Panne
Modified:
6 years, 8 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Consistently use a separate Lithium instruction for flooring division. Previously we tried to share some code on by a slightly confusing re-use of LDivI for a (general) flooring division. Now we cleanly separate concerns, just like for the rest of the division-like operations. Note that ARM64 already did it this way. If we really want to save some code, we can introduce some macro assembler instructions and/or helper functions in the code generator in a future CL, but we should really try to avoid being "clever" to save just a few lines of trivial code. Effort != complexity. :-) Renamed some related Lithium operands on the way for more consistency. R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20395

Patch Set 1 #

Patch Set 2 : Added TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -78 lines) Patch
M src/arm/lithium-arm.h View 4 chunks +25 lines, -6 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 chunks +14 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 4 chunks +76 lines, -21 lines 0 comments Download
M src/arm64/lithium-arm64.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 3 chunks +57 lines, -11 lines 0 comments Download
M src/ia32/lithium-ia32.h View 4 chunks +25 lines, -6 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 3 chunks +21 lines, -4 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 3 chunks +57 lines, -11 lines 0 comments Download
M src/x64/lithium-x64.h View 1 4 chunks +25 lines, -6 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 3 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sven Panne
Flushing my queue of local branches... :-) Note that this CL is mostly mechanical.
6 years, 9 months ago (2014-03-26 11:26:18 UTC) #1
Michael Starzinger
I am not yet entirely convinced that this change actually improves the situation overall. Admittedly ...
6 years, 9 months ago (2014-03-26 15:49:40 UTC) #2
Sven Panne
On 2014/03/26 15:49:40, Michael Starzinger wrote: > I am not yet entirely convinced that this ...
6 years, 9 months ago (2014-03-27 08:05:07 UTC) #3
Sven Panne
As discussed offline, I added a few TODOs to make it clear that we somehow ...
6 years, 8 months ago (2014-04-01 09:51:46 UTC) #4
Michael Starzinger
LGTM. After our offline discussion I am fine with having this intermediate step that just ...
6 years, 8 months ago (2014-04-01 11:23:11 UTC) #5
Sven Panne
6 years, 8 months ago (2014-04-01 11:42:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r20395 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698