Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 06fa10ef042fc731260bc6aadb010066bfea82a5..39803b1a2c98db9db392a6a0f360e3ba250c2dd0 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -80,14 +80,12 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitJSArrayBuffer( |
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 + 2 * kPointerSize), |
+ heap, HeapObject::RawField(object, |
+ JSArrayBuffer::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
return JSArrayBuffer::kSizeWithInternalFields; |
} |
@@ -99,10 +97,6 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitJSTypedArray( |
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; |
} |
@@ -114,10 +108,6 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitJSDataView(Map* map, |
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; |
} |
@@ -540,15 +530,13 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( |
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 + 2 * kPointerSize), |
+ heap, HeapObject::RawField(object, |
+ JSArrayBuffer::kWeakNextOffset + kPointerSize), |
HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
} |
@@ -559,10 +547,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSTypedArray( |
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)); |
} |
@@ -573,10 +557,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSDataView(Map* map, |
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)); |
} |