Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 1e9d2cea660781b9b132e32b2718f224e4ad8a45..65b4447339db2b8f38c3aa5a195dd09519420790 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1631,6 +1631,7 @@ void HeapObject::IterateBody(InstanceType type, int object_size, |
case JS_ARRAY_TYPE: |
case JS_ARRAY_BUFFER_TYPE: |
case JS_TYPED_ARRAY_TYPE: |
+ case JS_DATA_VIEW_TYPE: |
case JS_SET_TYPE: |
case JS_MAP_TYPE: |
case JS_WEAK_MAP_TYPE: |
@@ -15804,9 +15805,19 @@ void JSArrayBuffer::Neuter() { |
} |
-void JSTypedArray::Neuter() { |
+void JSArrayBufferView::NeuterView() { |
set_byte_offset(Smi::FromInt(0)); |
set_byte_length(Smi::FromInt(0)); |
+} |
+ |
+ |
+void JSDataView::Neuter() { |
+ NeuterView(); |
+} |
+ |
+ |
+void JSTypedArray::Neuter() { |
+ NeuterView(); |
set_length(Smi::FromInt(0)); |
set_elements(GetHeap()->EmptyExternalArrayForMap(map())); |
} |