Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 4366831aa9615bca3aa7d3066e511bc140392e62..c504988436f79f562eb73530db3ff4b30da489da 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -105,6 +105,11 @@ |
Map* map, HeapObject* object) { |
typedef FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, int> |
JSArrayBufferBodyVisitor; |
+ |
+ if (!JSArrayBuffer::cast(object)->is_external()) { |
+ Heap* heap = map->GetHeap(); |
+ heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object)); |
+ } |
return JSArrayBufferBodyVisitor::Visit(map, object); |
} |
@@ -528,7 +533,7 @@ |
if (!JSArrayBuffer::cast(object)->is_external() && |
!heap->InNewSpace(object)) { |
- ArrayBufferTracker::MarkLive(heap, JSArrayBuffer::cast(object)); |
+ heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object)); |
} |
} |