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

Issue 798693003: Subzero: Don't store std::string objects inside Variable. (Closed)

Created:
6 years ago by Jim Stichnoth
Modified:
6 years ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Don't store std::string objects inside Variable. Instead, extend 668a7a333d6ddc3102b5b7c7c07448f6d259113c to include both CfgNode and Variable, keeping a pool of strings in the Cfg. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=9a04c0760fe48d0003ffcc5be13f67ccd924a9a4

Patch Set 1 #

Total comments: 1

Patch Set 2 : Code review changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -58 lines) Patch
M src/IceCfg.h View 1 3 chunks +18 lines, -9 lines 0 comments Download
M src/IceCfgNode.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/IceCfgNode.cpp View 1 4 chunks +8 lines, -7 lines 0 comments Download
M src/IceConverter.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M src/IceInst.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M src/IceInstX8632.h View 2 chunks +4 lines, -5 lines 0 comments Download
M src/IceOperand.h View 1 3 chunks +13 lines, -15 lines 2 comments Download
M src/IceOperand.cpp View 2 chunks +7 lines, -6 lines 0 comments Download
M src/IceRegAlloc.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 2 chunks +9 lines, -4 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Jim Stichnoth
This doesn't really save much if any memory from leaking, because short-ish strings are inlined ...
6 years ago (2014-12-11 20:54:00 UTC) #2
jvoung (off chromium)
lgtm
6 years ago (2014-12-11 23:39:55 UTC) #3
JF
https://codereview.chromium.org/798693003/diff/20001/src/IceOperand.h File src/IceOperand.h (left): https://codereview.chromium.org/798693003/diff/20001/src/IceOperand.h#oldcode500 src/IceOperand.h:500: IceString Name; That would allow you to remove the ...
6 years ago (2014-12-11 23:45:19 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/798693003/diff/20001/src/IceOperand.h File src/IceOperand.h (left): https://codereview.chromium.org/798693003/diff/20001/src/IceOperand.h#oldcode500 src/IceOperand.h:500: IceString Name; On 2014/12/11 23:45:19, JF wrote: > That ...
6 years ago (2014-12-11 23:51:25 UTC) #6
Jim Stichnoth
Committed patchset #2 (id:20001) manually as 9a04c0760fe48d0003ffcc5be13f67ccd924a9a4 (presubmit successful).
6 years ago (2014-12-11 23:51:53 UTC) #7
Karl
6 years ago (2014-12-11 23:51:56 UTC) #8
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698