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

Issue 141653015: Simplify HUnaryMathOperation::Canonicalize. (Closed)

Created:
6 years, 11 months ago by Sven Panne
Modified:
6 years, 11 months ago
Reviewers:
Benedikt Meurer
CC:
v8-dev
Visibility:
Public.

Description

Simplify HUnaryMathOperation::Canonicalize. Made the logic architecture-independent, although we should really have some kind of instruction selection instead of trying to handle some weird cases at the hydrogen level. Some tiny related cleanups on the way. R=bmeurer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18824

Patch Set 1 #

Patch Set 2 : More simplifications #

Patch Set 3 : Removed platform #if #

Patch Set 4 : Unify MIPS variant. #

Patch Set 5 : Removed SupportsAllMathFloorOfDivDivisors #

Patch Set 6 : Cleanup #

Patch Set 7 : More cleanup #

Patch Set 8 : Moved forward declaration #

Total comments: 6

Patch Set 9 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -211 lines) Patch
M src/arm/lithium-arm.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -32 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -9 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 7 8 8 chunks +30 lines, -32 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 5 6 7 8 2 chunks +38 lines, -70 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -21 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/mips/lithium-mips.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/mips/lithium-mips.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -15 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -21 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sven Panne
6 years, 11 months ago (2014-01-22 15:17:57 UTC) #1
Benedikt Meurer
As discussed offline: Please don't make hydrogen graph creation platform dependent, but fix HMathFloorOfDiv instead.
6 years, 11 months ago (2014-01-23 08:15:12 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/141653015/diff/210001/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): https://codereview.chromium.org/141653015/diff/210001/src/arm/lithium-arm.cc#newcode1304 src/arm/lithium-arm.cc:1304: (right->IsInteger32Constant() && right->IsInteger32Constant() is always true here. https://codereview.chromium.org/141653015/diff/210001/src/hydrogen-instructions.cc File ...
6 years, 11 months ago (2014-01-24 12:33:21 UTC) #3
Sven Panne
Feedback addressed, PTAL again... https://codereview.chromium.org/141653015/diff/210001/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): https://codereview.chromium.org/141653015/diff/210001/src/arm/lithium-arm.cc#newcode1304 src/arm/lithium-arm.cc:1304: (right->IsInteger32Constant() && On 2014/01/24 12:33:21, ...
6 years, 11 months ago (2014-01-24 14:02:05 UTC) #4
Benedikt Meurer
LGTM
6 years, 11 months ago (2014-01-24 14:04:05 UTC) #5
Sven Panne
6 years, 11 months ago (2014-01-24 14:05:24 UTC) #6
Message was sent while issue was closed.
Committed patchset #9 manually as r18824 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698