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

Issue 892063002: Subzero: Manage each Cfg as a std::unique_ptr<Cfg>. (Closed)

Created:
5 years, 10 months ago by Jim Stichnoth
Modified:
5 years, 10 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: Manage each Cfg as a std::unique_ptr<Cfg>. The Cfg::create() method now returns a unique_ptr. Once the parser fully builds the Cfg, it is released onto the work queue, and then acquired and ultimately deleted by the translator thread. BUG= none R=jfb@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8e92838b8179d0b4a3022889c3446100b7ef831e

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Simplify #

Patch Set 4 : Reformat #

Total comments: 9

Patch Set 5 : Code review updates #

Total comments: 12

Patch Set 6 : Code review round 2 #

Patch Set 7 : Revert getFunc() change #

Total comments: 1

Patch Set 8 : Commit fix + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -116 lines) Patch
M src/IceCfg.h View 1 2 3 4 5 1 chunk +5 lines, -8 lines 0 comments Download
M src/IceCfg.cpp View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M src/IceConverter.cpp View 1 2 3 4 5 17 chunks +40 lines, -34 lines 0 comments Download
M src/IceDefs.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 6 7 3 chunks +18 lines, -5 lines 0 comments Download
M src/IceTranslator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceTranslator.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 5 6 7 24 chunks +70 lines, -59 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Jim Stichnoth
Sorry for the size of this CL. After getting unique_ptr<> in place, I thought it ...
5 years, 10 months ago (2015-02-02 00:07:12 UTC) #2
Jim Stichnoth
On 2015/02/02 00:07:12, stichnot wrote: > Sorry for the size of this CL. After getting ...
5 years, 10 months ago (2015-02-02 06:06:41 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/892063002/diff/60001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/892063002/diff/60001/src/IceGlobalContext.h#newcode280 src/IceGlobalContext.h:280: void cfgQueueBlockingPush(Cfg *Func) { CfgQ.blockingPush(Func); } I've designed this ...
5 years, 10 months ago (2015-02-02 16:51:15 UTC) #4
JF
> I came to my senses and reverted the Cfg::makeInst*() part. > > The following ...
5 years, 10 months ago (2015-02-02 17:11:47 UTC) #5
Karl
https://codereview.chromium.org/892063002/diff/60001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/892063002/diff/60001/src/IceConverter.cpp#newcode887 src/IceConverter.cpp:887: translateFcn(std::move(Fcn)); Should you leave the ownership of Func inside ...
5 years, 10 months ago (2015-02-02 18:14:10 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/892063002/diff/60001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/892063002/diff/60001/src/IceConverter.cpp#newcode108 src/IceConverter.cpp:108: return std::move(Func); On 2015/02/02 17:11:47, JF wrote: > This ...
5 years, 10 months ago (2015-02-02 18:48:48 UTC) #7
JF
https://codereview.chromium.org/892063002/diff/80001/src/IceCfg.h File src/IceCfg.h (right): https://codereview.chromium.org/892063002/diff/80001/src/IceCfg.h#newcode34 src/IceCfg.h:34: Cfg *Func = new Cfg(Ctx); It's slightly better to ...
5 years, 10 months ago (2015-02-02 20:59:20 UTC) #8
Jim Stichnoth
https://codereview.chromium.org/892063002/diff/80001/src/IceCfg.h File src/IceCfg.h (right): https://codereview.chromium.org/892063002/diff/80001/src/IceCfg.h#newcode34 src/IceCfg.h:34: Cfg *Func = new Cfg(Ctx); On 2015/02/02 20:59:19, JF ...
5 years, 10 months ago (2015-02-03 00:48:51 UTC) #9
JF
lgtm after typo fix. https://codereview.chromium.org/892063002/diff/120001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/892063002/diff/120001/src/PNaClTranslator.cpp#newcode1105 src/PNaClTranslator.cpp:1105: // translation of all remaining ...
5 years, 10 months ago (2015-02-03 00:55:57 UTC) #10
Jim Stichnoth
5 years, 10 months ago (2015-02-03 01:03:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
8e92838b8179d0b4a3022889c3446100b7ef831e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698