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

Issue 1845913003: Clean up Cl flag refrences in the bitcode parser. (Closed)

Created:
4 years, 8 months ago by Karl
Modified:
4 years, 8 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

Clean up Cl flag refrences in the bitcode parser. The code previously had to navigate through 1 (or more) indirect pointers to find the CL flags. Since CL flags are a static field in the global context, simplify these references. Note: I have added member functions to do this (where appropriate) so that fixing code could be easy if we choose to move where the command line flags are stored. BUG=None R=eholk@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=23866e7b1575b39ed8db8b2c26eaad68c0d83cc4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M src/PNaClTranslator.cpp View 1 6 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Karl
4 years, 8 months ago (2016-03-31 20:55:36 UTC) #3
Eric Holk
lgtm
4 years, 8 months ago (2016-03-31 21:00:47 UTC) #4
Jim Stichnoth
LGTM. If you're feeling a bit more ambitious, change all instances in the code base ...
4 years, 8 months ago (2016-03-31 21:02:31 UTC) #5
Karl
Committed patchset #2 (id:20001) manually as 23866e7b1575b39ed8db8b2c26eaad68c0d83cc4 (presubmit successful).
4 years, 8 months ago (2016-03-31 21:39:13 UTC) #7
Karl
4 years, 8 months ago (2016-03-31 21:39:48 UTC) #8
Message was sent while issue was closed.
Will work on fixing the rest of the calls to getFlags() in another CL.

https://codereview.chromium.org/1845913003/diff/1/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/1845913003/diff/1/src/PNaClTranslator.cpp#new...
src/PNaClTranslator.cpp:240: const Ice::ClFlags &getFlags() const {
On 2016/03/31 21:02:31, stichnot wrote:
> Make this static?

Done.

Powered by Google App Engine
This is Rietveld 408576698