Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 9a1a58ef82a91415cbc6719a2632f04a0ea9f3ae..c88de2193c8bc8bb3ed38863a831ce7023cf446a 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1002,6 +1002,22 @@ void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) { |
} |
+void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) { |
+ HeapObject::PrintHeader(out, "AllocationSiteInfo"); |
+ PrintF(out, " - payload: "); |
+ if (payload()->IsJSArray()) { |
+ PrintF(out, "Array literal "); |
+ payload()->ShortPrint(out); |
+ PrintF(out, "\n"); |
+ return; |
+ } |
+ |
+ PrintF(out, "unknown payload "); |
+ payload()->ShortPrint(out); |
+ PrintF(out, "\n"); |
+} |
+ |
+ |
void Script::ScriptPrint(FILE* out) { |
HeapObject::PrintHeader(out, "Script"); |
PrintF(out, "\n - source: "); |