Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 834223261f301a88af8912c43f24da913ca7e93a..559678a9dc828873cae372844d1c4d2ee6b5c530 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -186,6 +186,8 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
break; |
case JS_ARRAY_BUFFER_TYPE: |
JSArrayBuffer::cast(this)->JSArrayBufferPrint(out); |
+ case JS_TYPED_ARRAY_TYPE: |
+ JSTypedArray::cast(this)->JSTypedArrayPrint(out); |
#define MAKE_STRUCT_CASE(NAME, Name, name) \ |
case NAME##_TYPE: \ |
Name::cast(this)->Name##Print(out); \ |
@@ -807,6 +809,22 @@ void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { |
} |
+void JSTypedArray::JSTypedArrayPrint(FILE* out) { |
+ HeapObject::PrintHeader(out, "JSTypedArray"); |
+ PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
+ PrintF(out, " - buffer ="); |
+ buffer()->ShortPrint(out); |
+ PrintF(out, "\n - byte_offset = "); |
+ byte_offset()->ShortPrint(out); |
+ PrintF(out, "\n - byte_length = "); |
+ byte_length()->ShortPrint(out); |
+ PrintF(out, " - length = "); |
+ length()->ShortPrint(out); |
+ PrintF("\n"); |
+ PrintElements(out); |
+} |
+ |
+ |
void JSFunction::JSFunctionPrint(FILE* out) { |
HeapObject::PrintHeader(out, "Function"); |
PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |