| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index c504988436f79f562eb73530db3ff4b30da489da..4366831aa9615bca3aa7d3066e511bc140392e62 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -105,11 +105,6 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitJSArrayBuffer(
|
| 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);
|
| }
|
|
|
| @@ -533,7 +528,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer(
|
|
|
| if (!JSArrayBuffer::cast(object)->is_external() &&
|
| !heap->InNewSpace(object)) {
|
| - heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object));
|
| + ArrayBufferTracker::MarkLive(heap, JSArrayBuffer::cast(object));
|
| }
|
| }
|
|
|
|
|