Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 39803b1a2c98db9db392a6a0f360e3ba250c2dd0..06fa10ef042fc731260bc6aadb010066bfea82a5 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -80,12 +80,14 @@ |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
+ STATIC_ASSERT(JSArrayBuffer::kWeakFirstViewOffset == |
+ JSArrayBuffer::kWeakNextOffset + kPointerSize); |
VisitPointers(heap, HeapObject::RawField( |
object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
HeapObject::RawField(object, JSArrayBuffer::kWeakNextOffset)); |
VisitPointers( |
- heap, HeapObject::RawField(object, |
- JSArrayBuffer::kWeakNextOffset + kPointerSize), |
+ heap, HeapObject::RawField( |
+ object, JSArrayBuffer::kWeakNextOffset + 2 * kPointerSize), |
HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
return JSArrayBuffer::kSizeWithInternalFields; |
} |
@@ -97,6 +99,10 @@ |
VisitPointers( |
map->GetHeap(), |
HeapObject::RawField(object, JSTypedArray::BodyDescriptor::kStartOffset), |
+ HeapObject::RawField(object, JSTypedArray::kWeakNextOffset)); |
+ VisitPointers( |
+ map->GetHeap(), HeapObject::RawField( |
+ object, JSTypedArray::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSTypedArray::kSizeWithInternalFields)); |
return JSTypedArray::kSizeWithInternalFields; |
} |
@@ -108,6 +114,10 @@ |
VisitPointers( |
map->GetHeap(), |
HeapObject::RawField(object, JSDataView::BodyDescriptor::kStartOffset), |
+ HeapObject::RawField(object, JSDataView::kWeakNextOffset)); |
+ VisitPointers( |
+ map->GetHeap(), |
+ HeapObject::RawField(object, JSDataView::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSDataView::kSizeWithInternalFields)); |
return JSDataView::kSizeWithInternalFields; |
} |
@@ -530,13 +540,15 @@ |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
+ STATIC_ASSERT(JSArrayBuffer::kWeakFirstViewOffset == |
+ JSArrayBuffer::kWeakNextOffset + kPointerSize); |
StaticVisitor::VisitPointers( |
heap, |
HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
HeapObject::RawField(object, JSArrayBuffer::kWeakNextOffset)); |
StaticVisitor::VisitPointers( |
- heap, HeapObject::RawField(object, |
- JSArrayBuffer::kWeakNextOffset + kPointerSize), |
+ heap, HeapObject::RawField( |
+ object, JSArrayBuffer::kWeakNextOffset + 2 * kPointerSize), |
HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
} |
@@ -547,6 +559,10 @@ |
StaticVisitor::VisitPointers( |
map->GetHeap(), |
HeapObject::RawField(object, JSTypedArray::BodyDescriptor::kStartOffset), |
+ HeapObject::RawField(object, JSTypedArray::kWeakNextOffset)); |
+ StaticVisitor::VisitPointers( |
+ map->GetHeap(), HeapObject::RawField( |
+ object, JSTypedArray::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSTypedArray::kSizeWithInternalFields)); |
} |
@@ -557,6 +573,10 @@ |
StaticVisitor::VisitPointers( |
map->GetHeap(), |
HeapObject::RawField(object, JSDataView::BodyDescriptor::kStartOffset), |
+ HeapObject::RawField(object, JSDataView::kWeakNextOffset)); |
+ StaticVisitor::VisitPointers( |
+ map->GetHeap(), |
+ HeapObject::RawField(object, JSDataView::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSDataView::kSizeWithInternalFields)); |
} |