Index: src/objects-printer.cc |
=================================================================== |
--- src/objects-printer.cc (revision 9327) |
+++ src/objects-printer.cc (working copy) |
@@ -88,6 +88,9 @@ |
case BYTE_ARRAY_TYPE: |
ByteArray::cast(this)->ByteArrayPrint(out); |
break; |
+ case FREE_SPACE_TYPE: |
+ FreeSpace::cast(this)->FreeSpacePrint(out); |
+ break; |
case EXTERNAL_PIXEL_ARRAY_TYPE: |
ExternalPixelArray::cast(this)->ExternalPixelArrayPrint(out); |
break; |
@@ -189,6 +192,11 @@ |
} |
+void FreeSpace::FreeSpacePrint(FILE* out) { |
+ PrintF(out, "free space, size %d", Size()); |
+} |
+ |
+ |
void ExternalPixelArray::ExternalPixelArrayPrint(FILE* out) { |
PrintF(out, "external pixel array"); |
} |
@@ -418,6 +426,7 @@ |
case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; |
case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; |
case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; |
+ case FREE_SPACE_TYPE: return "FREE_SPACE"; |
case EXTERNAL_PIXEL_ARRAY_TYPE: return "EXTERNAL_PIXEL_ARRAY"; |
case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; |
case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
@@ -805,10 +814,15 @@ |
void ObjectTemplateInfo::ObjectTemplateInfoPrint(FILE* out) { |
HeapObject::PrintHeader(out, "ObjectTemplateInfo"); |
+ PrintF(out, " - tag: "); |
+ tag()->ShortPrint(out); |
+ PrintF(out, "\n - property_list: "); |
+ property_list()->ShortPrint(out); |
PrintF(out, "\n - constructor: "); |
constructor()->ShortPrint(out); |
PrintF(out, "\n - internal_field_count: "); |
internal_field_count()->ShortPrint(out); |
+ PrintF(out, "\n"); |
} |