| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 0acbf3a7412ce3f21f50ec460c3ba75d9947fe70..217d314fb132dcc09375a76f8b2cb3c317d5ab6c 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -1023,7 +1023,18 @@ void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) {
|
| void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
|
| HeapObject::PrintHeader(out, "AllocationSiteInfo");
|
| PrintF(out, " - payload: ");
|
| - if (payload()->IsJSArray()) {
|
| + if (payload()->IsJSGlobalPropertyCell()) {
|
| + JSGlobalPropertyCell* cell = JSGlobalPropertyCell::cast(payload());
|
| + Object* cell_contents = cell->value();
|
| + if (cell_contents->IsSmi()) {
|
| + ElementsKind kind = static_cast<ElementsKind>(
|
| + Smi::cast(cell_contents)->value());
|
| + PrintF(out, "Array allocation with ElementsKind ");
|
| + PrintElementsKind(out, kind);
|
| + PrintF(out, "\n");
|
| + return;
|
| + }
|
| + } else if (payload()->IsJSArray()) {
|
| PrintF(out, "Array literal ");
|
| payload()->ShortPrint(out);
|
| PrintF(out, "\n");
|
|
|