I think it'll LGTM with comments addressed.
http://codereview.chromium.org/7553012/diff/1/src/heap.h File src/heap.h (right): http://codereview.chromium.org/7553012/diff/1/src/heap.h#newcode135 src/heap.h:135: V(Object, encountered_weak_maps, EncounteredWeakMaps) \ Do we really need a separate root for this list? I think just a field on the Heap or MarkCompactCollector should be enough. http://codereview.chromium.org/7553012/diff/1/src/mark-compact.cc File src/mark-compact.cc (right): http://codereview.chromium.org/7553012/diff/1/src/mark-compact.cc#newcode588 src/mark-compact.cc:588: heap->mark_compact_collector()->SetMark(weak_map->unchecked_table()); What about marking unchecked_table()->map() or at least asserting that it is already marked (it is a root I presume) http://codereview.chromium.org/7553012/diff/1/src/mark-compact.cc#newcode1786 src/mark-compact.cc:1786: StaticMarkingVisitor::MarkObjectByPointer(heap(), &value); MarkObjectByPointer might modify the value (short circuiting of cons-strings) so you might want to store it back into table is value was modified. http://codereview.chromium.org/7553012/diff/1/test/cctest/test-weakmaps.cc File test/cctest/test-weakmaps.cc (right): http://codereview.chromium.org/7553012/diff/1/test/cctest/test-weakmaps.cc#newcode108 test/cctest/test-weakmaps.cc:108: HEAP->CollectAllGarbage(false); You can add a check that key is still in the map after first GC. http://codereview.chromium.org/7553012/diff/1/test/cctest/test-weakmaps.cc#newcode146 test/cctest/test-weakmaps.cc:146: //CHECK_EQ(32, weakmap->table()->Capacity()); Instead of leaving commented code (which we do not allow) disable test via expectations in cctest.status file. http://codereview.chromium.org/7553012/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
