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

Issue 673543002: First pass at emitIAS for branches and binding labels (Closed)

Created:
6 years, 2 months ago by jvoung (off chromium)
Modified:
6 years, 2 months ago
Reviewers:
Jim Stichnoth
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

First pass at emitIAS for branches and binding labels Currently not testing fixups of forward branches and instead streaming a ".byte (foo - (. + 1))" or ".long (foo - (. + 4))". It should be supported once emitIAS() delays writing things out until after the function is fully emitted (and therefore forward labels have all been bound). BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=7e1e485744b7205c2bf62356cf0903371fc82b10

Patch Set 1 #

Patch Set 2 : minor cleanups #

Patch Set 3 : dem tings #

Total comments: 13

Patch Set 4 : new test #

Patch Set 5 : match bytes #

Patch Set 6 : Store local label externally too #

Patch Set 7 : check the local labels too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -17 lines) Patch
M src/IceCfg.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceCfgNode.cpp View 1 3 chunks +6 lines, -1 line 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 5 3 chunks +12 lines, -12 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 4 5 3 chunks +77 lines, -0 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M src/assembler_ia32.h View 1 2 3 4 5 3 chunks +17 lines, -2 lines 0 comments Download
M src/assembler_ia32.cpp View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A tests_lit/assembler/x86/jump_encodings.ll View 1 2 3 4 5 1 chunk +218 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
jvoung (off chromium)
6 years, 2 months ago (2014-10-22 16:16:54 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp File src/IceInstX8632.cpp (right): https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp#newcode390 src/IceInstX8632.cpp:390: const intptr_t FwdBranchSize = Near ? 1 : 4; ...
6 years, 2 months ago (2014-10-22 18:01:14 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp File src/IceInstX8632.cpp (right): https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp#newcode390 src/IceInstX8632.cpp:390: const intptr_t FwdBranchSize = Near ? 1 : 4; ...
6 years, 2 months ago (2014-10-22 20:43:58 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.h#newcode333 src/IceInstX8632.h:333: mutable x86::Label AsmLabel; // modified by emitIAS. On 2014/10/22 ...
6 years, 2 months ago (2014-10-22 21:50:09 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.h#newcode333 src/IceInstX8632.h:333: mutable x86::Label AsmLabel; // modified by emitIAS. On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 18:05:27 UTC) #8
jvoung (off chromium)
https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp File src/IceInstX8632.cpp (right): https://codereview.chromium.org/673543002/diff/80001/src/IceInstX8632.cpp#newcode461 src/IceInstX8632.cpp:461: // In all these cases, local Labels should only ...
6 years, 2 months ago (2014-10-23 18:19:51 UTC) #9
Jim Stichnoth
lgtm
6 years, 2 months ago (2014-10-23 19:57:31 UTC) #10
jvoung (off chromium)
6 years, 2 months ago (2014-10-24 17:29:35 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 (id:160001) manually as
7e1e485744b7205c2bf62356cf0903371fc82b10 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698