Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5c2d5786099bff15cd894eea21f08693bd4dc0cf..5f18ddbe80d1bb3568b160ddac9c81491e289a96 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1109,13 +1109,7 @@ void Heap::MoveElements(FixedArray* array, int dst_index, int src_index, |
DCHECK(array->map() != fixed_cow_array_map()); |
Object** dst_objects = array->data_start() + dst_index; |
MemMove(dst_objects, array->data_start() + src_index, len * kPointerSize); |
- if (!InNewSpace(array)) { |
- for (int i = 0; i < len; i++) { |
- RecordWrite(array, array->OffsetOfElementAt(dst_index + i), |
- dst_objects[i]); |
- } |
- } |
- incremental_marking()->IterateBlackObject(array); |
+ FIXED_ARRAY_ELEMENTS_WRITE_BARRIER(this, array, dst_index, len); |
} |