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

Issue 1551633002: Subzero. Refactoring. (Closed)

Created:
4 years, 12 months ago by John
Modified:
4 years, 11 months ago
Reviewers:
Jim Stichnoth
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero. Refactoring. This is the first step towards hiding backend-specific stuff from the rest of subzero. In this CL, all the references to target-specific files (e.g., IceTargetLoweringX8632.h) are removed from target-independent files. This CL also changes the named constructors in the Target-specific classes (e.g., TargetX8632::create()) to return unique_ptrs. BUG= R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=53611e2c39b36db641a1b0cd9c6eb2174f696f79

Patch Set 1 #

Patch Set 2 : createAssembler becomes a virtual method. #

Patch Set 3 : Use free functions to interact with target creation. #

Patch Set 4 : Formatting, commenting. #

Patch Set 5 : Fixes MIPS32 regression. #

Total comments: 6

Patch Set 6 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -54 lines) Patch
M src/IceAssemblerARM32.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceAssemblerMIPS32.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceAssemblerX8632.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceAssemblerX8664.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 1 chunk +14 lines, -6 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 5 5 chunks +57 lines, -38 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 chunks +9 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8664.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
John
4 years, 12 months ago (2015-12-28 19:19:17 UTC) #2
Jim Stichnoth
lgtm https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLowering.cpp File src/IceTargetLowering.cpp (right): https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLowering.cpp#newcode30 src/IceTargetLowering.cpp:30: // implementations by forbidden #include of target-specific header ...
4 years, 11 months ago (2015-12-30 01:26:43 UTC) #4
John
Committed patchset #6 (id:90001) manually as 53611e2c39b36db641a1b0cd9c6eb2174f696f79 (presubmit successful).
4 years, 11 months ago (2015-12-30 15:30:15 UTC) #7
John
4 years, 11 months ago (2016-01-19 20:37:30 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLowering.cpp
File src/IceTargetLowering.cpp (right):

https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLowering.c...
src/IceTargetLowering.cpp:30: // implementations by forbidden #include of
target-specific header files
On 2015/12/30 01:26:42, stichnot wrote:
> forbidding

Done.

https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLowering.c...
src/IceTargetLowering.cpp:147: } // Call the specified target's static
initializer.
On 2015/12/30 01:26:42, stichnot wrote:
> Is this comment out of place?

Done.

https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLoweringMI...
File src/IceTargetLoweringMIPS32.cpp (right):

https://codereview.chromium.org/1551633002/diff/10007/src/IceTargetLoweringMI...
src/IceTargetLoweringMIPS32.cpp:49: } // end of namespace ARM32
On 2015/12/30 01:26:43, stichnot wrote:
> MIPS32

Done.

Powered by Google App Engine
This is Rietveld 408576698