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

Unified Diff: src/objects-visiting-inl.h

Issue 10996018: Allow partial scanning of large arrays in order to avoid (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 3 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
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);
}
« src/objects-visiting.h ('K') | « src/objects-visiting.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698