Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 9f809d7e3853e90618152dcdbe7d2daaf06b4e80..53c0a21c52837a308757ae70226c53649b942d94 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -75,6 +75,9 @@ |
break; |
case BYTECODE_ARRAY_TYPE: |
BytecodeArray::cast(this)->BytecodeArrayPrint(os); |
+ break; |
+ case TRANSITION_ARRAY_TYPE: |
+ TransitionArray::cast(this)->TransitionArrayPrint(os); |
break; |
case FREE_SPACE_TYPE: |
FreeSpace::cast(this)->FreeSpacePrint(os); |
@@ -548,6 +551,19 @@ |
} else { |
os << get_scalar(i); |
} |
+ } |
+ os << "\n"; |
+} |
+ |
+ |
+void TransitionArray::TransitionArrayPrint(std::ostream& os) { // NOLINT |
+ HeapObject::PrintHeader(os, "TransitionArray"); |
+ os << " - capacity: " << length(); |
+ for (int i = 0; i < length(); i++) { |
+ os << "\n [" << i << "]: " << Brief(get(i)); |
+ if (i == kNextLinkIndex) os << " (next link)"; |
+ if (i == kPrototypeTransitionsIndex) os << " (prototype transitions)"; |
+ if (i == kTransitionLengthIndex) os << " (number of transitions)"; |
} |
os << "\n"; |
} |