Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 357d984a13121bca7719693c38fd6c8ec55ce74c..33aa404041848e694ec1e39c71e9b9fcc7d62d50 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -182,7 +182,10 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
case JS_MESSAGE_OBJECT_TYPE: |
JSMessageObject::cast(this)->JSMessageObjectPrint(out); |
break; |
- case JS_GLOBAL_PROPERTY_CELL_TYPE: |
+ case CELL_TYPE: |
+ Cell::cast(this)->CellPrint(out); |
+ break; |
+ case PROPERTY_CELL_TYPE: |
JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out); |
break; |
case JS_ARRAY_BUFFER_TYPE: |
@@ -533,7 +536,8 @@ static const char* TypeToString(InstanceType type) { |
case JS_OBJECT_TYPE: return "JS_OBJECT"; |
case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT"; |
case ODDBALL_TYPE: return "ODDBALL"; |
- case JS_GLOBAL_PROPERTY_CELL_TYPE: return "JS_GLOBAL_PROPERTY_CELL"; |
+ case CELL_TYPE: return "CELL"; |
+ case PROPERTY_CELL_TYPE: return "PROPERTY_CELL"; |
case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; |
case JS_GENERATOR_OBJECT_TYPE: return "JS_GENERATOR_OBJECT"; |
case JS_MODULE_TYPE: return "JS_MODULE"; |
@@ -917,6 +921,11 @@ void JSBuiltinsObject::JSBuiltinsObjectPrint(FILE* out) { |
} |
+void Cell::CellPrint(FILE* out) { |
+ HeapObject::PrintHeader(out, "Cell"); |
+} |
+ |
+ |
void JSGlobalPropertyCell::JSGlobalPropertyCellPrint(FILE* out) { |
HeapObject::PrintHeader(out, "JSGlobalPropertyCell"); |
} |
@@ -1093,8 +1102,8 @@ void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) { |
void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) { |
HeapObject::PrintHeader(out, "AllocationSiteInfo"); |
PrintF(out, " - payload: "); |
- if (payload()->IsJSGlobalPropertyCell()) { |
- JSGlobalPropertyCell* cell = JSGlobalPropertyCell::cast(payload()); |
+ if (payload()->IsCell()) { |
+ Cell* cell = Cell::cast(payload()); |
Object* cell_contents = cell->value(); |
if (cell_contents->IsSmi()) { |
ElementsKind kind = static_cast<ElementsKind>( |