Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 6d2811b6097880bdbfeeb5e9c8642c524910d5fb..5260193ca71650de79d77ff3c7e31dae53be3829 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1126,17 +1126,12 @@ void AllocationSite::AllocationSitePrint(FILE* out) { |
PrintF(out, "\n - nested site: "); |
nested_site()->ShortPrint(out); |
PrintF(out, "\n - transition_info: "); |
- if (transition_info()->IsCell()) { |
- Cell* cell = Cell::cast(transition_info()); |
- 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; |
- } |
+ if (transition_info()->IsSmi()) { |
+ ElementsKind kind = GetElementsKind(); |
+ PrintF(out, "Array allocation with ElementsKind "); |
+ PrintElementsKind(out, kind); |
+ PrintF(out, "\n"); |
+ return; |
} else if (transition_info()->IsJSArray()) { |
PrintF(out, "Array literal "); |
transition_info()->ShortPrint(out); |