Chromium Code Reviews| Index: src/objects-printer.cc |
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
| index 86382e1d54188ed119925369f5d224323f6eae0b..ad563456a36baff6b0228e534291f439f00023c3 100644 |
| --- a/src/objects-printer.cc |
| +++ b/src/objects-printer.cc |
| @@ -184,6 +184,8 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
| case JS_GLOBAL_PROPERTY_CELL_TYPE: |
| JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out); |
| break; |
| + case JS_ARRAY_BUFFER_TYPE: |
| + JSArrayBuffer::cast(this)->JSArrayBufferPrint(out); |
| #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| case NAME##_TYPE: \ |
| Name::cast(this)->Name##Print(out); \ |
| @@ -795,6 +797,16 @@ void JSWeakMap::JSWeakMapPrint(FILE* out) { |
| } |
| +void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { |
| + HeapObject::PrintHeader(out, "JSArrayBuffer"); |
| + PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
| + PrintF(out, " - backing_store = -0x%p\n", backing_store()); |
| + PrintF(out, " - byte_length ="); |
|
rossberg
2013/03/27 17:33:14
Space after =
Dmitry Lomov (no reviews)
2013/03/27 18:45:00
Done.
|
| + byte_length()->ShortPrint(out); |
| + PrintF(out, "\n"); |
| +} |
| + |
| + |
| void JSFunction::JSFunctionPrint(FILE* out) { |
| HeapObject::PrintHeader(out, "Function"); |
| PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |