Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: src/heap/heap.cc

Issue 1943263002: [heap] Fix clearing slots for map and size during LeftTrimFixedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698