Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index e9b67efbbc230724a16751e8baaeadd877c845fc..5275c31bad71e74c0ceda012047cc7fc8255b748 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1108,7 +1108,7 @@ void Heap::MoveElements(FixedArray* array, int dst_index, int src_index, |
dst_objects[i]); |
} |
} |
- incremental_marking()->RecordWrites(array); |
+ incremental_marking()->IterateBlackObject(array); |
} |
@@ -4708,10 +4708,9 @@ void Heap::IteratePromotedObject(HeapObject* target, int size, |
// regular visiting and IteratePromotedObjectPointers. |
if (!was_marked_black) { |
if (incremental_marking()->black_allocation()) { |
- Map* map = target->map(); |
- IncrementalMarking::MarkObject(this, map); |
+ IncrementalMarking::MarkObject(this, target->map()); |
+ incremental_marking()->IterateBlackObject(target); |
} |
- incremental_marking()->IterateBlackObject(target); |
} |
} |