Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index fd5027c2a8a07ad127d245c8e316e0402b34273b..6fd0d6cb04c56fc0c4fefc1143ecbbd8477ae191 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -629,10 +629,7 @@ void IncrementalMarking::UpdateMarkingDequeAfterScavenge() { |
void IncrementalMarking::VisitObject(Map* map, HeapObject* obj, int size) { |
- MarkBit map_mark_bit = Marking::MarkBitFrom(map); |
- if (Marking::IsWhite(map_mark_bit)) { |
- WhiteToGreyAndPush(map, map_mark_bit); |
- } |
+ MarkObject(heap_, map); |
IncrementalMarkingMarkingVisitor::IterateBody(map, obj); |