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

Issue 1293343003: Change to use arena allocation for function-local data in parser. (Closed)

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

Change to use arena allocation for function-local data in parser. Changes to use arena allocator of the CFG associated with function, for vectors in the function parser. BUG=None R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=209318af2b035d729225c5d86dbeb27935ebfafb

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix formatting. #

Total comments: 6

Patch Set 4 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -32 lines) Patch
M src/IceCfg.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M src/IceDefs.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 11 chunks +26 lines, -28 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Karl
5 years, 4 months ago (2015-08-20 15:37:11 UTC) #2
Jim Stichnoth
lgtm https://codereview.chromium.org/1293343003/diff/30001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/1293343003/diff/30001/src/IceDefs.h#newcode147 src/IceDefs.h:147: // VarList and NodeList are arena-allocated from the ...
5 years, 4 months ago (2015-08-20 20:11:11 UTC) #3
Karl
Committed patchset #4 (id:50001) manually as 209318af2b035d729225c5d86dbeb27935ebfafb (presubmit successful).
5 years, 4 months ago (2015-08-20 20:24:06 UTC) #4
Karl
5 years, 4 months ago (2015-08-20 20:24:19 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1293343003/diff/30001/src/IceDefs.h
File src/IceDefs.h (right):

https://codereview.chromium.org/1293343003/diff/30001/src/IceDefs.h#newcode147
src/IceDefs.h:147: // VarList and NodeList are arena-allocated from the Cfg's
allocator.
On 2015/08/20 20:11:11, stichnot wrote:
> In conjunction with my comment below, you can probably change this comment to
> something like:
> // Containers that are arena-allocated from the Cfg's allocator.
> 
> and add a comment to the next section:
> // Containers that use the default (global) allocator.

Done.

https://codereview.chromium.org/1293343003/diff/30001/src/IceDefs.h#newcode151
src/IceDefs.h:151: typedef std::vector<Constant *> ConstantList;
On 2015/08/20 20:11:11, stichnot wrote:
> Maybe move ConstantList below the blank line.  It's looking like the first
> section is CfgLocal vectors, and the second section is traditional vectors.

Done.

https://codereview.chromium.org/1293343003/diff/30001/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/1293343003/diff/30001/src/PNaClTranslator.cpp...
src/PNaClTranslator.cpp:1233: Func =
Ice::Cfg::create(getTranslator().getContext(),
On 2015/08/20 20:11:11, stichnot wrote:
> It would probably be good to add a comment here explaining that a Cfg is
created
> even when IR generation is disabled just to install a CfgLocalAllocator for
> various internal containers.

Done.

Powered by Google App Engine
This is Rietveld 408576698