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

Issue 1992723002: [serializer] prepare attached references for general use. (Closed)

Created:
4 years, 7 months ago by Yang
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[serializer] prepare attached references for general use. Currently attached references are only used for global proxy, source string and code stubs. Mid-term future we want to use attached references for arbitrary objects (in fixed order) provided from outside. This change renames BackReference to SerializerReference to include both back references and attached references. R=mtrofin@chromium.org, vogelheim@chromium.org Committed: https://crrev.com/735fa0c478c5bba3c33d0509dd3263c745a50180 Cr-Commit-Position: refs/heads/master@{#36318}

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -168 lines) Patch
M src/address-map.h View 1 2 chunks +93 lines, -62 lines 0 comments Download
M src/context-measure.h View 1 chunk +1 line, -1 line 0 comments Download
M src/context-measure.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/snapshot/code-serializer.h View 3 chunks +2 lines, -8 lines 0 comments Download
M src/snapshot/code-serializer.cc View 3 chunks +16 lines, -32 lines 0 comments Download
M src/snapshot/deserializer.h View 2 chunks +5 lines, -5 lines 0 comments Download
M src/snapshot/deserializer.cc View 1 4 chunks +3 lines, -6 lines 0 comments Download
M src/snapshot/partial-serializer.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/snapshot/partial-serializer.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M src/snapshot/serializer.h View 5 chunks +10 lines, -7 lines 0 comments Download
M src/snapshot/serializer.cc View 10 chunks +40 lines, -32 lines 0 comments Download
M src/snapshot/serializer-common.h View 3 chunks +3 lines, -6 lines 0 comments Download
M src/snapshot/startup-serializer.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Yang
4 years, 7 months ago (2016-05-18 10:29:26 UTC) #1
Mircea Trofin
lgtm
4 years, 7 months ago (2016-05-18 10:47:42 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992723002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992723002/1
4 years, 7 months ago (2016-05-18 10:58:58 UTC) #4
vogelheim
lgtm https://codereview.chromium.org/1992723002/diff/1/src/address-map.h File src/address-map.h (right): https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode63 src/address-map.h:63: explicit SerializerReference(uint32_t bitfield) : bitfield_(bitfield) {} Why is ...
4 years, 7 months ago (2016-05-18 11:18:48 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-18 11:29:02 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/735fa0c478c5bba3c33d0509dd3263c745a50180 Cr-Commit-Position: refs/heads/master@{#36318}
4 years, 7 months ago (2016-05-18 11:30:42 UTC) #9
Yang
https://codereview.chromium.org/1992723002/diff/1/src/address-map.h File src/address-map.h (right): https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode63 src/address-map.h:63: explicit SerializerReference(uint32_t bitfield) : bitfield_(bitfield) {} On 2016/05/18 11:18:47, ...
4 years, 7 months ago (2016-05-18 11:58:42 UTC) #10
Yang
4 years, 7 months ago (2016-05-18 11:59:28 UTC) #11
Message was sent while issue was closed.
On 2016/05/18 11:58:42, Yang wrote:
> https://codereview.chromium.org/1992723002/diff/1/src/address-map.h
> File src/address-map.h (right):
> 
> https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode63
> src/address-map.h:63: explicit SerializerReference(uint32_t bitfield) :
> bitfield_(bitfield) {}
> On 2016/05/18 11:18:47, vogelheim wrote:
> > Why is this a public constructor?
> > 
> > (It assumes the caller knows the bitfield encodings, which this class does
not
> > make public.)
> > (I think this is used from the friend class ...Map. As that's a friend, this
> > could be pr[ivate|otected].)
> 
> The deserializer reconstructs references from serialized bitfields. I added an
> explicit SerializerReference::FromBitfield.
> 
> https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode138
> src/address-map.h:138: // value, or a attached reference index.
> On 2016/05/18 11:18:47, vogelheim wrote:
> > super nitpick: "a attached" -> "an attached"
> 
> Done.
> 
> https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode164
> src/address-map.h:164: STATIC_ASSERT(SpaceBits::kNext == 32);
> On 2016/05/18 11:18:47, vogelheim wrote:
> > Maybe assert for ValueIndexBits::kNext == ChunkIndexBits::kNext ?
> 
> Done.
> 
> https://codereview.chromium.org/1992723002/diff/1/src/address-map.h#newcode203
> src/address-map.h:203: HashMap* map_;
> On 2016/05/18 11:18:47, vogelheim wrote:
> > Why not a regular (non-pointer) member?
> > 
> > (From what I'm seeing, this is always [co|de]nstructed in the
> [co|de]nstructor,
> > so it could as well be a regular member.)
> 
> Good point. Done.

Crap. It landed the first patch set in the meantime :/

Powered by Google App Engine
This is Rietveld 408576698