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

Issue 2781993005: Protect SerializedData from copying. (Closed)

Created:
3 years, 8 months ago by Slava Chigrin
Modified:
3 years, 8 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Protect SerializedData from copying. Compiler-generated copy constructor does not generate correct code for this class, so make it move-only type. Review-Url: https://codereview.chromium.org/2781993005 Cr-Commit-Position: refs/heads/master@{#44266} Committed: https://chromium.googlesource.com/v8/v8/+/b6912850dffa2e6ba52d2c254cc5b72761e63f6d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use DISALLOW_COPY_AND_ASSIGN macro. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M src/snapshot/code-serializer.h View 1 chunk +4 lines, -3 lines 0 comments Download
M src/snapshot/code-serializer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/snapshot/serializer-common.h View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Slava Chigrin
Before that it was possible to write code like ... SnapshotData snapshot_data(&serializer); SnapshotData copy = ...
3 years, 8 months ago (2017-03-29 16:45:26 UTC) #3
Yang
thanks! One comment https://codereview.chromium.org/2781993005/diff/1/src/snapshot/serializer-common.h File src/snapshot/serializer-common.h (right): https://codereview.chromium.org/2781993005/diff/1/src/snapshot/serializer-common.h#newcode254 src/snapshot/serializer-common.h:254: We have a macro called DISALLOW_COPY_AND_ASSIGN ...
3 years, 8 months ago (2017-03-29 17:06:59 UTC) #4
Slava Chigrin
I also have proposition about ExternalReferenceTable::kDeoptTableSerializeEntryCount constant. Seems it value is set by kind of ...
3 years, 8 months ago (2017-03-30 09:40:06 UTC) #5
Yang
On 2017/03/30 09:40:06, Slava Chigrin wrote: > I also have proposition about > ExternalReferenceTable::kDeoptTableSerializeEntryCount constant. ...
3 years, 8 months ago (2017-03-30 09:50:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781993005/20001
3 years, 8 months ago (2017-03-30 10:35:59 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 11:44:22 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/b6912850dffa2e6ba52d2c254cc5b72761e...

Powered by Google App Engine
This is Rietveld 408576698