Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 8fbe2182c51ea5b26bef050d3dca8d622ab10ae2..4ca280056fb3ed1c9de914df70d46dd9834fc6b4 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -527,8 +527,9 @@ void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT |
HeapObject::PrintHeader(os, "ConstantPoolArray"); |
os << " - length: " << length(); |
for (int i = 0; i <= last_index(INT32, SMALL_SECTION); i++) { |
- if (i < last_index(INT64, SMALL_SECTION)) { |
- os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); |
+ if (i <= last_index(INT64, SMALL_SECTION)) { |
+ os << "\n [" << i << "]: int64: " << get_int64_entry(i) |
+ << " (as double: " << get_int64_entry_as_double(i) << ")"; |
} else if (i <= last_index(CODE_PTR, SMALL_SECTION)) { |
os << "\n [" << i << "]: code target pointer: " |
<< reinterpret_cast<void*>(get_code_ptr_entry(i)); |
@@ -543,8 +544,9 @@ void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT |
os << "\n Extended section:"; |
for (int i = first_extended_section_index(); |
i <= last_index(INT32, EXTENDED_SECTION); i++) { |
- if (i < last_index(INT64, EXTENDED_SECTION)) { |
- os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); |
+ if (i <= last_index(INT64, EXTENDED_SECTION)) { |
+ os << "\n [" << i << "]: int64: " << get_int64_entry(i) |
+ << " (as double: " << get_int64_entry_as_double(i) << ")"; |
} else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) { |
os << "\n [" << i << "]: code target pointer: " |
<< reinterpret_cast<void*>(get_code_ptr_entry(i)); |