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

Issue 1776473007: Subzero. Allocate global initializers from a dedicated arena. (Closed)

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

Subzero. Allocate global initializers from a dedicated arena. This allows Subzero to release the global initializers once they've been lowered. This CL also modifies the global initializer types to ensure they are trivially destructible -- therefore not requiring destructors to run. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4360 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=a78e4baab1557beccdb7604175dcea97ef1afe06

Patch Set 1 #

Patch Set 2 : GlobalVariables (and their initializers) are created in private pools. Still some stuff to be done. #

Patch Set 3 : Discards globals -- and initializers -- once they've been lowered. #

Patch Set 4 : Some fixes. #

Patch Set 5 : Fixes build #

Patch Set 6 : fixes ther llvm2ice converter; fixes the VariableDeclarationList destructor. #

Total comments: 7

Patch Set 7 : Addresses comments. #

Patch Set 8 : Removes global variable (and initializer) allocation methods from GlobalContext. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -146 lines) Patch
M src/IceCfg.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 2 1 chunk +15 lines, -18 lines 0 comments Download
M src/IceCompiler.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceConverter.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M src/IceConverter.cpp View 1 2 9 chunks +16 lines, -16 lines 0 comments Download
M src/IceDefs.h View 1 2 3 4 5 6 2 chunks +125 lines, -5 lines 0 comments Download
M src/IceELFObjectWriter.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/IceELFObjectWriter.cpp View 1 3 5 chunks +6 lines, -7 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 4 5 6 7 6 chunks +31 lines, -6 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 6 7 4 chunks +32 lines, -25 lines 0 comments Download
M src/IceGlobalInits.h View 1 2 3 4 5 6 7 10 chunks +74 lines, -46 lines 0 comments Download
M src/IceGlobalInits.cpp View 3 chunks +8 lines, -7 lines 0 comments Download
M src/IceTargetLowering.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 5 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
John
4 years, 9 months ago (2016-03-14 21:01:47 UTC) #2
Jim Stichnoth
lgtm https://codereview.chromium.org/1776473007/diff/100001/src/IceCompiler.cpp File src/IceCompiler.cpp (right): https://codereview.chromium.org/1776473007/diff/100001/src/IceCompiler.cpp#newcode97 src/IceCompiler.cpp:97: // ice. "Ice" instead of "ice"? Also, I ...
4 years, 9 months ago (2016-03-14 22:21:32 UTC) #4
John
ptal https://codereview.chromium.org/1776473007/diff/100001/src/IceCompiler.cpp File src/IceCompiler.cpp (right): https://codereview.chromium.org/1776473007/diff/100001/src/IceCompiler.cpp#newcode97 src/IceCompiler.cpp:97: // ice. On 2016/03/14 22:21:31, stichnot wrote: > ...
4 years, 9 months ago (2016-03-15 15:07:18 UTC) #5
Jim Stichnoth
still lgtm https://codereview.chromium.org/1776473007/diff/100001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/1776473007/diff/100001/src/IceDefs.h#newcode148 src/IceDefs.h:148: /// VariableDeclarationList is a container for holding ...
4 years, 9 months ago (2016-03-15 15:48:29 UTC) #6
John
4 years, 9 months ago (2016-03-15 16:28:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
a78e4baab1557beccdb7604175dcea97ef1afe06 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698