Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 4243bcab442dba760215358d3b707617185f8adf..58342ed466dd0410bde1728cc2f196682cf279f6 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1674,24 +1674,24 @@ void Heap::ProcessNativeContexts(WeakObjectRetainer* retainer, |
template<> |
-struct WeakListVisitor<JSTypedArray> { |
- static void SetWeakNext(JSTypedArray* obj, Object* next) { |
+struct WeakListVisitor<JSArrayBufferView> { |
+ static void SetWeakNext(JSArrayBufferView* obj, Object* next) { |
obj->set_weak_next(next); |
} |
- static Object* WeakNext(JSTypedArray* obj) { |
+ static Object* WeakNext(JSArrayBufferView* obj) { |
return obj->weak_next(); |
} |
static void VisitLiveObject(Heap*, |
- JSTypedArray* obj, |
+ JSArrayBufferView* obj, |
WeakObjectRetainer* retainer, |
bool record_slots) {} |
- static void VisitPhantomObject(Heap*, JSTypedArray*) {} |
+ static void VisitPhantomObject(Heap*, JSArrayBufferView*) {} |
static int WeakNextOffset() { |
- return JSTypedArray::kWeakNextOffset; |
+ return JSArrayBufferView::kWeakNextOffset; |
} |
}; |
@@ -1711,7 +1711,7 @@ struct WeakListVisitor<JSArrayBuffer> { |
WeakObjectRetainer* retainer, |
bool record_slots) { |
Object* typed_array_obj = |
- VisitWeakList<JSTypedArray>( |
+ VisitWeakList<JSArrayBufferView>( |
heap, |
array_buffer->weak_first_array(), |
retainer, record_slots); |