Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 1a8a9b61aaf6b4d463017f28d4c98d5da454b49d..21f7dc417de4e768886cc425599bdf05f5750b60 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3143,9 +3143,9 @@ FixedArrayBase* Heap::LeftTrimFixedArray(FixedArrayBase* object, |
FixedArrayBase::cast(HeapObject::FromAddress(new_start)); |
// Remove recorded slots for the new map and length offset. |
- ClearRecordedSlot(new_object, HeapObject::RawField(object, 0)); |
- ClearRecordedSlot( |
- new_object, HeapObject::RawField(object, FixedArrayBase::kLengthOffset)); |
+ ClearRecordedSlot(new_object, HeapObject::RawField(new_object, 0)); |
+ ClearRecordedSlot(new_object, HeapObject::RawField( |
+ new_object, FixedArrayBase::kLengthOffset)); |
// Maintain consistency of live bytes during incremental marking |
Marking::TransferMark(this, object->address(), new_start); |