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

Issue 1216033004: Move X8632-specific Assembler stuff to Machine Traits. (Closed)

Created:
5 years, 5 months ago by John
Modified:
5 years, 5 months ago
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

Move X8632-specific Assembler stuff to Machine Traits. As part of the refactoring moves the MachineTraits<TargetX8632> to a separate header. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4077 R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=5d0acff3a2fa421923392aadb4df2742064b6248

Patch Set 1 : Moves X8632-specific Assembler definitions to AssemblerTraits. #

Patch Set 2 : Moves the X86Internal::MachineTraits<TargetX8632> to a shared header. Merges with AssemblerTraits. #

Patch Set 3 : Refactors the X8632 Assembler so that it delegates most of its functionality to the AssemblerX86 te… #

Patch Set 4 : git pull && merge && Renames AssemblerX86 to AssemblerX86Base. #

Patch Set 5 : Removes references to X8632-specific registers/condition codes from the base TargetLoweringX86Base. #

Total comments: 14

Patch Set 6 : Addresses comments. #

Patch Set 7 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4847 lines, -3895 lines) Patch
M Makefile.standalone View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/IceAssemblerX8632.h View 1 2 3 2 chunks +8 lines, -880 lines 0 comments Download
M src/IceAssemblerX8632.cpp View 1 2 1 chunk +0 lines, -2558 lines 0 comments Download
A src/IceAssemblerX86Base.h View 1 2 3 1 chunk +959 lines, -0 lines 0 comments Download
A src/IceAssemblerX86BaseImpl.h View 1 2 3 4 5 1 chunk +3109 lines, -0 lines 0 comments Download
M src/IceConditionCodesX8664.h View 1 2 3 4 1 chunk +14 lines, -15 lines 0 comments Download
M src/IceInstX8632.h View 1 2 15 chunks +26 lines, -22 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 53 chunks +100 lines, -80 lines 0 comments Download
M src/IceRegistersX8632.h View 1 2 3 4 1 chunk +62 lines, -63 lines 0 comments Download
M src/IceRegistersX8664.h View 1 2 3 4 5 6 1 chunk +49 lines, -50 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 5 chunks +15 lines, -89 lines 0 comments Download
A src/IceTargetLoweringX8632Traits.h View 1 2 3 4 5 1 chunk +354 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86Base.h View 1 2 3 4 9 chunks +17 lines, -10 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 4 62 chunks +130 lines, -119 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
John
Pretty mechanical (and boring) stuff. But we're closer to X8664. :)
5 years, 5 months ago (2015-06-30 20:18:04 UTC) #2
jvoung (off chromium)
Cool -- just a few nits from me (are we still adding the license bits?) ...
5 years, 5 months ago (2015-06-30 21:19:48 UTC) #3
John
Please take another look. https://codereview.chromium.org/1216033004/diff/80001/src/IceAssemblerX86BaseImpl.h File src/IceAssemblerX86BaseImpl.h (right): https://codereview.chromium.org/1216033004/diff/80001/src/IceAssemblerX86BaseImpl.h#newcode262 src/IceAssemblerX86BaseImpl.h:262: emitUint8(0x0F); On 2015/06/30 21:19:48, jvoung ...
5 years, 5 months ago (2015-06-30 21:42:00 UTC) #4
jvoung (off chromium)
lgtm https://codereview.chromium.org/1216033004/diff/80001/src/IceRegistersX8632.h File src/IceRegistersX8632.h (right): https://codereview.chromium.org/1216033004/diff/80001/src/IceRegistersX8632.h#newcode23 src/IceRegistersX8632.h:23: class RegX8632 { On 2015/06/30 21:42:00, John wrote: ...
5 years, 5 months ago (2015-06-30 22:26:46 UTC) #5
John
Committed patchset #7 (id:120001) manually as 5d0acff3a2fa421923392aadb4df2742064b6248 (presubmit successful).
5 years, 5 months ago (2015-06-30 22:29:25 UTC) #6
John
5 years, 5 months ago (2015-06-30 22:29:29 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1216033004/diff/80001/src/IceRegistersX8632.h
File src/IceRegistersX8632.h (right):

https://codereview.chromium.org/1216033004/diff/80001/src/IceRegistersX8632.h...
src/IceRegistersX8632.h:23: class RegX8632 {
On 2015/06/30 22:26:46, jvoung wrote:
> On 2015/06/30 21:42:00, John wrote:
> > On 2015/06/30 21:19:48, jvoung wrote:
> > > Should RegX8664 get the same treatment (namespace -> class)?
> > 
> > This is already part of this patch. Nice catch, though. :)
> 
> I see "ConditionCodesX8664.h", but not RegistersX8664.h, but I could be
missing
> something.

I got confused.... Good catch.

Powered by Google App Engine
This is Rietveld 408576698