| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 1fae69be204fab359eda116db0963bdfaf57f4a7..0d803590d7cca1761b0081eb65348ebfb3abb42f 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -1117,8 +1117,8 @@ void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) {
|
| }
|
|
|
|
|
| -void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| - HeapObject::PrintHeader(out, "AllocationSiteInfo");
|
| +void AllocationSite::AllocationSitePrint(FILE* out) {
|
| + HeapObject::PrintHeader(out, "AllocationSite");
|
| PrintF(out, " - payload: ");
|
| if (payload()->IsCell()) {
|
| Cell* cell = Cell::cast(payload());
|
| @@ -1144,6 +1144,17 @@ void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| }
|
|
|
|
|
| +void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| + HeapObject::PrintHeader(out, "AllocationSiteInfo");
|
| + PrintF(out, " - allocation site: ");
|
| + if (IsValid()) {
|
| + GetAllocationSite()->Print();
|
| + } else {
|
| + PrintF(out, "<invalid>\n");
|
| + }
|
| +}
|
| +
|
| +
|
| void Script::ScriptPrint(FILE* out) {
|
| HeapObject::PrintHeader(out, "Script");
|
| PrintF(out, "\n - source: ");
|
|
|