• adamk@chromium.org's avatar
    ES6 Map/Set iterators/forEach improvements · 70c3a714
    adamk@chromium.org authored
    This changes how Map/Set interacts with its iterators. When the
    underlying table is rehashed or cleared, we create a new table (like
    before) but we add a reference from the old table to the new table. We
    also add an array describing how to transition the iterator from the
    old table to the new table.
    
    When Next is called on the iterator it checks if there is a newer table
    that it should transition to. If there is, it updates the index based
    on the previously recorded changes and finally changes itself to point
    at the new table.
    
    With these changes Map/Set no longer keeps the iterators alive. Also,
    as before, the iterators keep the underlying table(s) alive but not the
    actual Map/Set.
    
    BUG=v8:1793
    LOG=Y
    R=mstarzinger@chromium.org, rossberg@chromium.org
    
    Review URL: https://codereview.chromium.org/289503002
    
    Patch from Erik Arvidsson <arv@chromium.org>.
    
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21389 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    70c3a714
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.DEPS.git Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...