Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 95afb4abe25906f8b96937997dd505bc67fdd8de..e2dd2a3e273208db864f232ea2033b0afc238ac2 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -425,8 +425,10 @@ void MarkCompactCollector::MarkMapContents(Map* map) { |
// Since the descriptor array has been marked already, it is fine |
// that one of these fields contains a pointer to it. |
MarkingVisitor visitor; // Has no state or contents. |
- visitor.VisitPointers(HeapObject::RawField(map, Map::kPrototypeOffset), |
- HeapObject::RawField(map, Map::kSize)); |
+ visitor.VisitPointers(HeapObject::RawField(map, |
+ Map::kPointerFieldsBeginOffset), |
+ HeapObject::RawField(map, |
+ Map::kPointerFieldsEndOffset)); |
} |