Looks pretty good now.

One thing: do we have tests for the edge cases? In particular, the case where everything up to (and including) the iterator position is deleted, so that the
write is maximally close to the read in the loop.


https://codereview.chromium.org/289503002/diff/100001/src/objects.cc
File src/objects.cc (right):

https://codereview.chromium.org/289503002/diff/100001/src/objects.cc#newcode16301
src/objects.cc:16301:
Add an assertion here that removed_holes_index == nod.

https://codereview.chromium.org/289503002/diff/100001/src/objects.cc#newcode16518
src/objects.cc:16518: index = 0;
At this point we can actually break the outer loop.

In fact, we can always do that when index becomes 0. Maybe simply add
"index > 0 &&" to the while condition instead of inserting a break here.

https://codereview.chromium.org/289503002/diff/100001/src/objects.h
File src/objects.h (right):

https://codereview.chromium.org/289503002/diff/100001/src/objects.h#newcode4229
src/objects.h:4229: bool IsDeprecated() {
We have a concept of "deprecation" for maps, which is unrelated. Just to
avoid confusion, maybe we should use a different name here (e.g.
IsOutdated or IsRehashed).

https://codereview.chromium.org/289503002/diff/100001/src/objects.h#newcode4230
src/objects.h:4230: return !get(kNumberOfElementsIndex)->IsSmi();
We could define a separate constant for this (and other slots), that
just alias the one it's overlaying.

https://codereview.chromium.org/289503002/

--
--
v8-dev mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to