Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Unified Diff: src/objects-printer.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Caught up to bleending edge (8/15) Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/assembler-ppc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 8fbe2182c51ea5b26bef050d3dca8d622ab10ae2..1c681e29192b384dadadc0607d1d38a7c88f28de 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -527,8 +527,12 @@ 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)) {
+ if (i <= last_index(INT64, SMALL_SECTION)) {
+#if V8_TARGET_ARCH_64_BIT
+ os << "\n [" << i << "]: int64: " << get_int64_entry(i);
rmcilroy 2014/08/18 11:14:42 I would prefer that you just print out the value a
andrew_low 2014/08/18 14:02:09 Done.
+#else
os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
+#endif
} 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 +547,12 @@ 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)) {
+ if (i <= last_index(INT64, EXTENDED_SECTION)) {
+#if V8_TARGET_ARCH_64_BIT
+ os << "\n [" << i << "]: int64: " << get_int64_entry(i);
rmcilroy 2014/08/18 11:14:42 ditto.
andrew_low 2014/08/18 14:02:09 Done.
+#else
os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
+#endif
} else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) {
os << "\n [" << i << "]: code target pointer: "
<< reinterpret_cast<void*>(get_code_ptr_entry(i));
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698