Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index 407611b20d42f06fa0091aa89faddf0e845600f7..7a3b3f4a935a82c9e649ebc63be641cae3ecebc7 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -213,7 +213,7 @@ class BodyVisitorBase : public AllStatic { |
start_offset); |
Object** end_slot = reinterpret_cast<Object**>(object->address() + |
end_offset); |
- StaticVisitor::VisitPointers(heap, start_slot, start_slot, end_slot); |
+ StaticVisitor::VisitPointers(heap, start_slot, end_slot); |
} |
}; |
@@ -283,26 +283,21 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
return table_.GetVisitor(map)(map, obj); |
} |
- static inline void VisitPointers( |
- Heap* heap, Object** anchor, Object** start, Object** end) { |
+ static inline void VisitPointers(Heap* heap, Object** start, Object** end) { |
for (Object** p = start; p < end; p++) StaticVisitor::VisitPointer(heap, p); |
} |
private: |
static inline int VisitJSFunction(Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
- Object** start_slot = |
- HeapObject::RawField(object, JSFunction::kPropertiesOffset); |
VisitPointers(heap, |
- start_slot, |
- start_slot, |
+ HeapObject::RawField(object, JSFunction::kPropertiesOffset), |
HeapObject::RawField(object, JSFunction::kCodeEntryOffset)); |
// Don't visit code entry. We are using this visitor only during scavenges. |
VisitPointers( |
heap, |
- start_slot, |
HeapObject::RawField(object, |
JSFunction::kCodeEntryOffset + kPointerSize), |
HeapObject::RawField(object, |