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

Issue 640303006: Weak Cells (Closed)

Created:
6 years, 2 months ago by ulan
Modified:
6 years, 2 months ago
CC:
v8-dev, Paweł Hajdan Jr., Michael Starzinger, Hannes Payer (out of office)
Project:
v8
Visibility:
Public.

Description

Weak Cells Introduce an object that holds a weak reference. Design document: http://goo.gl/9dSvvy. BUG= R=erik.corry@gmail.com Committed: https://code.google.com/p/v8/source/detail?r=24606

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : Address Erik's comments, use Smi::From(0) as end of list sentinel. #

Patch Set 5 : Fix typo #

Patch Set 6 : Test live weak cell. #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Skip cleared weak cells #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -3 lines) Patch
M include/v8.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/factory.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 5 chunks +11 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 4 chunks +20 lines, -0 lines 0 comments Download
M src/heap/mark-compact.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 5 6 4 chunks +37 lines, -1 line 0 comments Download
M src/heap/objects-visiting.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 3 4 5 6 7 2 chunks +18 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 5 chunks +33 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 3 chunks +29 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Erik Corry
LGTM https://codereview.chromium.org/640303006/diff/180001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/640303006/diff/180001/src/heap/heap.cc#newcode2702 src/heap/heap.cc:2702: WeakCell::cast(result)->update_value_from_gc(value); This is from allocation, not from GC, ...
6 years, 2 months ago (2014-10-13 15:56:17 UTC) #2
ulan
Thanks for review, Erik. I uploaded new PS and add a link to design doc. ...
6 years, 2 months ago (2014-10-14 10:17:23 UTC) #4
ulan
Michael, Hannes: this is fyi.
6 years, 2 months ago (2014-10-14 13:22:46 UTC) #5
Erik Corry
LGTM with comments https://codereview.chromium.org/640303006/diff/330001/src/heap/objects-visiting-inl.h File src/heap/objects-visiting-inl.h (right): https://codereview.chromium.org/640303006/diff/330001/src/heap/objects-visiting-inl.h#newcode360 src/heap/objects-visiting-inl.h:360: if (weak_cell->next() == heap->undefined_value()) { I ...
6 years, 2 months ago (2014-10-14 13:37:22 UTC) #6
ulan
https://codereview.chromium.org/640303006/diff/330001/src/heap/objects-visiting-inl.h File src/heap/objects-visiting-inl.h (right): https://codereview.chromium.org/640303006/diff/330001/src/heap/objects-visiting-inl.h#newcode360 src/heap/objects-visiting-inl.h:360: if (weak_cell->next() == heap->undefined_value()) { On 2014/10/14 13:37:22, Erik ...
6 years, 2 months ago (2014-10-14 14:05:41 UTC) #7
ulan
6 years, 2 months ago (2014-10-14 14:44:06 UTC) #8
Message was sent while issue was closed.
Committed patchset #8 (id:350001) manually as 24606 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698