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

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed)

Created:
4 years, 9 months ago by Jim Stichnoth
Modified:
4 years, 9 months ago
Reviewers:
Eric Holk, Karl, sehr, John
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: Fix symbol name mangling. Make flags global. This cleans up the whole --prefix handling mechanism, so that all mangling is done based on logic in the parser instead of scattered all over the code base. Another nice side effect is that it allows some getName() style functions to return a const string reference instead of a string copy. Also, moves ClFlags into a static field of GlobalContext, i.e. makes it global, so that these constant flags can be accessed without having to plumb a GlobalContext object. Note that some of the ClFlags and ClFlagsExtra plumbing in the compile server classes could be simplified to directly use the corresponding static fields, but this is left mostly as is for now, for when we do a proper separation between core and supplemental flags. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=98ba00666271be1bdcd45b72b3dec04419efe61b

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 23

Patch Set 3 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -452 lines) Patch
M Makefile.standalone View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/IceAssemblerARM32.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceBrowserCompileServer.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M src/IceBrowserCompileServer.cpp View 1 2 2 chunks +10 lines, -11 lines 0 comments Download
M src/IceCfg.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceCfg.cpp View 5 chunks +8 lines, -10 lines 0 comments Download
M src/IceCfgNode.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M src/IceClFlags.h View 1 chunk +15 lines, -0 lines 0 comments Download
M src/IceCompileServer.cpp View 1 6 chunks +12 lines, -13 lines 0 comments Download
M src/IceConverter.cpp View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 9 chunks +12 lines, -18 lines 0 comments Download
M src/IceELFSection.h View 3 chunks +3 lines, -4 lines 0 comments Download
M src/IceFixups.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceFixups.cpp View 3 chunks +6 lines, -9 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 7 chunks +8 lines, -18 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 10 chunks +17 lines, -184 lines 0 comments Download
M src/IceGlobalInits.h View 1 2 14 chunks +42 lines, -42 lines 0 comments Download
M src/IceGlobalInits.cpp View 7 chunks +9 lines, -20 lines 0 comments Download
M src/IceInstARM32.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceInstMIPS32.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceIntrinsics.cpp View 1 chunk +1 line, -1 line 0 comments Download
A src/IceMangling.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A src/IceMangling.cpp View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
M src/IceOperand.h View 1 2 9 chunks +13 lines, -19 lines 0 comments Download
M src/IceOperand.cpp View 1 chunk +2 lines, -7 lines 0 comments Download
M src/IceTargetLowering.cpp View 7 chunks +13 lines, -18 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 chunk +3 lines, -4 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 7 chunks +12 lines, -15 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 10 chunks +16 lines, -24 lines 0 comments Download
M src/PNaClTranslator.cpp View 3 chunks +6 lines, -9 lines 0 comments Download
M unittest/BitcodeMunge.h View 3 chunks +4 lines, -2 lines 0 comments Download
M unittest/BitcodeMunge.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
Jim Stichnoth
4 years, 9 months ago (2016-03-06 20:17:17 UTC) #5
John
lgtm I would strongly recommend the flags to be global objects, and not class members. ...
4 years, 9 months ago (2016-03-06 22:39:38 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1766233002/diff/20001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1766233002/diff/20001/Makefile.standalone#newcode542 Makefile.standalone:542: +make -f Makefile.standalone \ On 2016/03/06 22:39:38, John wrote: ...
4 years, 9 months ago (2016-03-07 00:03:11 UTC) #7
John
lgtm Another thing to keep in mind: contemporary c++ compilers will optimize Doh d = ...
4 years, 9 months ago (2016-03-07 16:41:08 UTC) #8
Jim Stichnoth
4 years, 9 months ago (2016-03-07 17:26:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
98ba00666271be1bdcd45b72b3dec04419efe61b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698