Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 54518a21ff619506889e45c32370329cf19a9053..1f72ce3c880d9bb411d92f1584c93530bb70f222 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -465,7 +465,9 @@ void Map::MapPrint(std::ostream& os) { // NOLINT |
HeapObject::PrintHeader(os, "Map"); |
os << " - type: " << TypeToString(instance_type()) << "\n"; |
os << " - instance size: " << instance_size() << "\n"; |
- os << " - inobject properties: " << inobject_properties() << "\n"; |
+ if (IsJSObjectMap()) { |
+ os << " - inobject properties: " << GetInObjectProperties() << "\n"; |
+ } |
os << " - elements kind: " << ElementsKindToString(elements_kind()) << "\n"; |
os << " - unused property fields: " << unused_property_fields() << "\n"; |
if (is_deprecated()) os << " - deprecated_map\n"; |