Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 8873f637929853044ec4e531a5a428e6cfb387eb..29a5afc320a370d4e9ee2802865353eb8054fe80 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -92,10 +92,8 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitJSArrayBuffer( |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
- VisitPointers( |
- heap, object, |
- HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
- HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
+ JSArrayBuffer::JSArrayBufferIterateBody< |
+ StaticNewSpaceVisitor<StaticVisitor> >(heap, object); |
if (!JSArrayBuffer::cast(object)->is_external()) { |
heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object)); |
} |
@@ -528,10 +526,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
- StaticVisitor::VisitPointers( |
- heap, object, |
- HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
- HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
+ JSArrayBuffer::JSArrayBufferIterateBody<StaticVisitor>(heap, object); |
if (!JSArrayBuffer::cast(object)->is_external() && |
!heap->InNewSpace(object)) { |
heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object)); |