Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index cb3f27a79b0e3f8ece986a4df7bbad7d991863fe..6e30303370d647c9f88695b818cf001eb6b82fd1 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1065,7 +1065,7 @@ void LayoutDescriptor::Print(std::ostream& os) { // NOLINT |
PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value())); |
} else { |
os << "slow"; |
- int len = length(); |
+ int len = Smi::cast(length())->value(); |
for (int i = 0; i < len; i++) { |
if (i > 0) os << " |"; |
PrintBitMask(os, get_scalar(i)); |