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

Issue 1265023003: Clarify which type "Label" refers to (generic vs X86) (Closed)

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

Description

Clarify which type "Label" refers to (generic vs X86) There is a generic Label that can be used as-is for ARM and MIPS, and there is an x86 derived class Label which adds the concept of near and far (for 8-bit vs 32-bit jumps). Previously, one method "getOrCreateCfgNodeLabel" would say that it returns a Label when it means the generic one in some cases and the x86 one in other cases. Split that into getCfgNodeLabel and getOrCreateCfgNodeLabel where getCfgNodeLabel returns the generic one and getOrCreateCfgNodeLabel is part of the x86 code and returns the x86 one. BUG=none R=ascull@google.com, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=c2ec58179184e3357255a02b94ec6b219dc44080

Patch Set 1 #

Patch Set 2 : simplify the get #

Total comments: 2

Patch Set 3 : not LabelBase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M src/IceAssembler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceAssemblerARM32.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceAssemblerMIPS32.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceAssemblerX8632.h View 1 chunk +1 line, -0 lines 1 comment Download
M src/IceAssemblerX86Base.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/IceAssemblerX86BaseImpl.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jvoung (off chromium)
5 years, 4 months ago (2015-07-31 18:31:25 UTC) #2
ascull
https://codereview.chromium.org/1265023003/diff/20001/src/IceAssembler.h File src/IceAssembler.h (right): https://codereview.chromium.org/1265023003/diff/20001/src/IceAssembler.h#newcode37 src/IceAssembler.h:37: class LabelBase { Given that ARM and MIPS won't ...
5 years, 4 months ago (2015-07-31 20:54:54 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/1265023003/diff/20001/src/IceAssembler.h File src/IceAssembler.h (right): https://codereview.chromium.org/1265023003/diff/20001/src/IceAssembler.h#newcode37 src/IceAssembler.h:37: class LabelBase { On 2015/07/31 20:54:54, ascull wrote: > ...
5 years, 4 months ago (2015-08-03 17:19:21 UTC) #5
ascull
lgtm
5 years, 4 months ago (2015-08-04 17:37:28 UTC) #6
Jim Stichnoth
lgtm
5 years, 4 months ago (2015-08-05 13:14:19 UTC) #7
jvoung (off chromium)
updated CL description -- Also the unittest appears to be compiling again, independently of this ...
5 years, 4 months ago (2015-08-05 16:13:31 UTC) #8
jvoung (off chromium)
5 years, 4 months ago (2015-08-05 16:35:42 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
c2ec58179184e3357255a02b94ec6b219dc44080 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698