Chromium Code Reviews| Index: src/objects-visiting-inl.h |
| =================================================================== |
| --- src/objects-visiting-inl.h (revision 12609) |
| +++ src/objects-visiting-inl.h (working copy) |
| @@ -262,9 +262,11 @@ |
| map_object->instance_type() >= FIRST_JS_RECEIVER_TYPE) { |
| MarkMapContents(heap, map_object); |
| } else { |
| - StaticVisitor::VisitPointers(heap, |
| - HeapObject::RawField(object, Map::kPointerFieldsBeginOffset), |
| - HeapObject::RawField(object, Map::kPointerFieldsEndOffset)); |
| + Object** start = |
|
Michael Starzinger
2012/09/26 11:40:07
Can we call that "start_slot" for consistency.
|
| + HeapObject::RawField(object, Map::kPointerFieldsBeginOffset); |
| + Object** end = |
|
Michael Starzinger
2012/09/26 11:40:07
Can we call that "end_slot" for consistency.
|
| + HeapObject::RawField(object, Map::kPointerFieldsEndOffset); |
| + StaticVisitor::VisitPointers(heap, start, start, end); |
| } |
| } |
| @@ -286,9 +288,9 @@ |
| Map* map, HeapObject* object) { |
| int last_property_offset = |
| JSRegExp::kSize + kPointerSize * map->inobject_properties(); |
| - StaticVisitor::VisitPointers(map->GetHeap(), |
| - HeapObject::RawField(object, JSRegExp::kPropertiesOffset), |
| - HeapObject::RawField(object, last_property_offset)); |
| + Object** start = HeapObject::RawField(object, JSRegExp::kPropertiesOffset); |
| + Object** end = HeapObject::RawField(object, last_property_offset); |
|
Michael Starzinger
2012/09/26 11:40:07
Likewise.
|
| + StaticVisitor::VisitPointers(map->GetHeap(), start, start, end); |
| } |
| @@ -315,9 +317,9 @@ |
| // Mark the pointer fields of the Map. Since the transitions array has |
| // been marked already, it is fine that one of these fields contains a |
| // pointer to it. |
| - StaticVisitor::VisitPointers(heap, |
| - HeapObject::RawField(map, Map::kPointerFieldsBeginOffset), |
| - HeapObject::RawField(map, Map::kPointerFieldsEndOffset)); |
| + Object** start = HeapObject::RawField(map, Map::kPointerFieldsBeginOffset); |
| + Object** end = HeapObject::RawField(map, Map::kPointerFieldsEndOffset); |
|
Michael Starzinger
2012/09/26 11:40:07
Likewise.
|
| + StaticVisitor::VisitPointers(heap, start, start, end); |
| } |