| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index f1616da1aac55e51025b6dce8c3d59132b2c911b..fb2d46c7fa2d3045060477fca41df9041b7550ce 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -1116,8 +1116,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());
|
| @@ -1143,6 +1143,17 @@ void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| }
|
|
|
|
|
| +void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| + HeapObject::PrintHeader(out, "AllocationSiteInfo");
|
| + PrintF(out, " - allocation site: ");
|
| + if (site_is_valid()) {
|
| + allocation_site_casted()->Print();
|
| + } else {
|
| + PrintF(out, "<invalid>\n");
|
| + }
|
| +}
|
| +
|
| +
|
| void Script::ScriptPrint(FILE* out) {
|
| HeapObject::PrintHeader(out, "Script");
|
| PrintF(out, "\n - source: ");
|
|
|