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

Issue 19678023: ES6: Implement WeakSet (Closed)

Created:
7 years, 5 months ago by arv (Not doing code reviews)
Modified:
7 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

ES6: Implement WeakSet WeakSets work similar to ordinary Sets but the value (which must be an object) is held weakly. This is available under --harmony-collections BUG=v8:2785 R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15792

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename WeakCollection to JSWeakCollection #

Patch Set 3 : Fix ws violation #

Patch Set 4 : Fix ws violation #

Patch Set 5 : Reitveld is acting up #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -149 lines) Patch
M src/bootstrapper.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/collection.js View 8 chunks +86 lines, -6 lines 0 comments Download
M src/heap.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M src/incremental-marking.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M src/macros.py View 1 chunk +1 line, -0 lines 0 comments Download
M src/mark-compact.h View 3 chunks +11 lines, -9 lines 0 comments Download
M src/mark-compact.cc View 1 6 chunks +38 lines, -33 lines 0 comments Download
M src/messages.js View 1 chunk +1 line, -0 lines 0 comments Download
M src/object-observe.js View 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 7 chunks +38 lines, -9 lines 0 comments Download
M src/objects.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 4 chunks +11 lines, -2 lines 0 comments Download
M src/objects-printer.cc View 3 chunks +13 lines, -0 lines 1 comment Download
M src/objects-visiting.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-visiting.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects-visiting-inl.h View 2 chunks +5 lines, -1 line 0 comments Download
M src/runtime.h View 1 chunk +6 lines, -6 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +28 lines, -24 lines 0 comments Download
M src/types.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +1 line, -0 lines 0 comments Download
A + test/cctest/test-weaksets.cc View 7 chunks +43 lines, -43 lines 0 comments Download
M test/mjsunit/harmony/collections.js View 10 chunks +60 lines, -5 lines 0 comments Download
M tools/grokdump.py View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
arv (Not doing code reviews)
I introduced a shared super class, WeakCollection, and change the GC to only operate on ...
7 years, 5 months ago (2013-07-19 01:08:53 UTC) #1
Michael Starzinger
LGTM. Slam dunk. I'll wait for Andreas to take a brief look and then land ...
7 years, 5 months ago (2013-07-19 09:50:20 UTC) #2
rossberg
https://codereview.chromium.org/19678023/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/19678023/diff/1/src/objects.h#newcode67 src/objects.h:67: // - WeakCollection Just one nit: this should be ...
7 years, 5 months ago (2013-07-19 09:55:49 UTC) #3
arv (Not doing code reviews)
On 2013/07/19 09:55:49, rossberg wrote: > https://codereview.chromium.org/19678023/diff/1/src/objects.h > File src/objects.h (right): > > https://codereview.chromium.org/19678023/diff/1/src/objects.h#newcode67 > ...
7 years, 5 months ago (2013-07-19 18:32:28 UTC) #4
Michael Starzinger
Since Andreas is OOO this week, waiting for his reply doesn't make much sense. His ...
7 years, 5 months ago (2013-07-22 08:20:10 UTC) #5
Michael Starzinger
For the record, first version of this CL is at: https://codereview.chromium.org/19429002/
7 years, 5 months ago (2013-07-22 08:21:43 UTC) #6
Michael Starzinger
Committed patchset #5 manually as r15792 (presubmit successful).
7 years, 5 months ago (2013-07-22 08:32:40 UTC) #7
Michael Starzinger
7 years, 5 months ago (2013-07-22 08:34:24 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/19678023/diff/11002/src/objects-printer.cc
File src/objects-printer.cc (right):

https://codereview.chromium.org/19678023/diff/11002/src/objects-printer.cc#ne...
src/objects-printer.cc:831: void JSWeakMap::JSWeakSetPrint(FILE* out) {
Typo s/JSWeakMap/JSWeakSet/ fixed while landing.

Powered by Google App Engine
This is Rietveld 408576698