Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index ca42383cbd41f9f9f6eaf59f575d8ed9eb11f94f..c0c0e477bf8dd65c5a76c4ca79eb3c56cc8417c0 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -207,6 +207,9 @@ void HeapObject::HeapObjectVerify() { |
case JS_TYPED_ARRAY_TYPE: |
JSTypedArray::cast(this)->JSTypedArrayVerify(); |
break; |
+ case JS_DATA_VIEW_TYPE: |
+ JSDataView::cast(this)->JSDataViewVerify(); |
+ break; |
#define MAKE_STRUCT_CASE(NAME, Name, name) \ |
case NAME##_TYPE: \ |
@@ -761,8 +764,8 @@ void JSArrayBuffer::JSArrayBufferVerify() { |
} |
-void JSTypedArray::JSTypedArrayVerify() { |
- CHECK(IsJSTypedArray()); |
+void JSArrayBufferView::JSArrayBufferViewVerify() { |
+ CHECK(IsJSArrayBufferView()); |
JSObjectVerify(); |
VerifyPointer(buffer()); |
CHECK(buffer()->IsJSArrayBuffer() || buffer()->IsUndefined()); |
@@ -774,7 +777,12 @@ void JSTypedArray::JSTypedArrayVerify() { |
VerifyPointer(byte_length()); |
CHECK(byte_length()->IsSmi() || byte_length()->IsHeapNumber() |
|| byte_length()->IsUndefined()); |
+} |
+ |
+void JSTypedArray::JSTypedArrayVerify() { |
+ CHECK(IsJSTypedArray()); |
+ JSArrayBufferViewVerify(); |
VerifyPointer(length()); |
CHECK(length()->IsSmi() || length()->IsHeapNumber() |
|| length()->IsUndefined()); |
@@ -783,6 +791,12 @@ void JSTypedArray::JSTypedArrayVerify() { |
} |
+void JSDataView::JSDataViewVerify() { |
+ CHECK(IsJSDataView()); |
+ JSArrayBufferViewVerify(); |
+} |
+ |
+ |
void Foreign::ForeignVerify() { |
CHECK(IsForeign()); |
} |