On 2014/05/08 13:11:50, arv wrote:
The idea is to have a single linked list. When GC happens we remove the
collected items from this list. Similar to how you currently do
VisitWeakList
and WeakListVisitor. This means that the Map/Set does not keep the
iterator
alive but the iterator keeps the Map/Set alive which is a requirement. I
took
some rough notes when I looked at this last time:
https://docs.google.com/a/google.com/document/d/1-v25eMlmIJFdeAlYEziSV0VXI9QWUSWbdz6tuE-A22o/edit#heading=h.e03fz1pee5xt
Off-hand this sounds plausible, although it looks like it would be
duplicating
machinery that ObjectHashTable already provides. Also, if possible, it
would be
great if we found a solution that would allow self-hosting the iterator
implementation.
This was done as a seperate file because iterators depends on Symbol
which we
are not shipping and no other browser has implemented. Since everyone
else is
shipping Map and Set I didn't want to gate Map and Set on Symbols.
Symbols will be the next thing we stage, so I wouldn't worry about that.
(Where
does it currently use symbols, btw?)
https://codereview.chromium.org/259883002/
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.