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

Issue 1017373002: Subzero: Assemble calls to constant addresses. (Closed)

Created:
5 years, 9 months ago by jvoung (off chromium)
Modified:
5 years, 9 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

Assemble calls to constant addresses. Finally address this TODO in the assembler. This will help translate non-IRT using programs (no ABI stability). The default scons testing mode is non-IRT, so this helps with that. I haven't actually tested this against scons yet, but I'm filling in the tests based on how LLVM translates the same bitcode. The filetype=asm is adjusted to omit the "*" and the "$". The filetype=obj is adjusted to check for fixups with NullSymbols, and also fill the assembler buffer at the instruction's immediate field w/ the right constant. The filetype=iasm is still TODO (hits an new assert in the Fixup's emit() function). Reverts 7ad1bed99d058199a3ba246a5383458518596fbc: "Allow stubbing of called constant addresses using command line argument." since this is now handled (except for iasm). BUG= https://code.google.com/p/nativeclient/issues/detail?id=4080 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=f644a4b3a36d707b32dd4b7855774a346a575e96

Patch Set 1 #

Patch Set 2 : revert stubbing of constant calls #

Patch Set 3 : remove comment #

Patch Set 4 : move test back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -83 lines) Patch
M src/IceClFlags.h View 1 3 chunks +2 lines, -8 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M src/IceELFSection.h View 1 5 chunks +19 lines, -3 lines 0 comments Download
M src/IceELFSection.cpp View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M src/IceFixups.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceFixups.cpp View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 chunks +6 lines, -18 lines 0 comments Download
M src/IceOperand.h View 4 chunks +4 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 3 chunks +26 lines, -1 line 0 comments Download
M src/PNaClTranslator.cpp View 1 6 chunks +5 lines, -29 lines 0 comments Download
M src/assembler_ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler_ia32.cpp View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/main.cpp View 1 2 chunks +0 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/callindirect.pnacl.ll View 1 2 3 2 chunks +23 lines, -11 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
jvoung (off chromium)
5 years, 9 months ago (2015-03-19 00:39:22 UTC) #2
Jim Stichnoth
Nice! lgtm I guess it would be nice to get filetype=iasm working for this at ...
5 years, 9 months ago (2015-03-19 01:09:55 UTC) #3
jvoung (off chromium)
On 2015/03/19 01:09:55, stichnot wrote: > Nice! lgtm > > I guess it would be ...
5 years, 9 months ago (2015-03-19 16:50:36 UTC) #5
jvoung (off chromium)
5 years, 9 months ago (2015-03-19 18:58:01 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
f644a4b3a36d707b32dd4b7855774a346a575e96 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698