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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/assembler-ppc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 520 }
521 } 521 }
522 os << "\n"; 522 os << "\n";
523 } 523 }
524 524
525 525
526 void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT 526 void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT
527 HeapObject::PrintHeader(os, "ConstantPoolArray"); 527 HeapObject::PrintHeader(os, "ConstantPoolArray");
528 os << " - length: " << length(); 528 os << " - length: " << length();
529 for (int i = 0; i <= last_index(INT32, SMALL_SECTION); i++) { 529 for (int i = 0; i <= last_index(INT32, SMALL_SECTION); i++) {
530 if (i < last_index(INT64, SMALL_SECTION)) { 530 if (i <= last_index(INT64, SMALL_SECTION)) {
531 #if V8_TARGET_ARCH_64_BIT
532 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.
533 #else
531 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 534 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
535 #endif
532 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) { 536 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) {
533 os << "\n [" << i << "]: code target pointer: " 537 os << "\n [" << i << "]: code target pointer: "
534 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 538 << reinterpret_cast<void*>(get_code_ptr_entry(i));
535 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) { 539 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) {
536 os << "\n [" << i << "]: heap pointer: " 540 os << "\n [" << i << "]: heap pointer: "
537 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 541 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
538 } else if (i <= last_index(INT32, SMALL_SECTION)) { 542 } else if (i <= last_index(INT32, SMALL_SECTION)) {
539 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 543 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
540 } 544 }
541 } 545 }
542 if (is_extended_layout()) { 546 if (is_extended_layout()) {
543 os << "\n Extended section:"; 547 os << "\n Extended section:";
544 for (int i = first_extended_section_index(); 548 for (int i = first_extended_section_index();
545 i <= last_index(INT32, EXTENDED_SECTION); i++) { 549 i <= last_index(INT32, EXTENDED_SECTION); i++) {
546 if (i < last_index(INT64, EXTENDED_SECTION)) { 550 if (i <= last_index(INT64, EXTENDED_SECTION)) {
551 #if V8_TARGET_ARCH_64_BIT
552 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.
553 #else
547 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 554 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
555 #endif
548 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) { 556 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) {
549 os << "\n [" << i << "]: code target pointer: " 557 os << "\n [" << i << "]: code target pointer: "
550 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 558 << reinterpret_cast<void*>(get_code_ptr_entry(i));
551 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) { 559 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) {
552 os << "\n [" << i << "]: heap pointer: " 560 os << "\n [" << i << "]: heap pointer: "
553 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 561 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
554 } else if (i <= last_index(INT32, EXTENDED_SECTION)) { 562 } else if (i <= last_index(INT32, EXTENDED_SECTION)) {
555 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 563 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
556 } 564 }
557 } 565 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1121 }
1114 } 1122 }
1115 os << "\n"; 1123 os << "\n";
1116 } 1124 }
1117 1125
1118 1126
1119 #endif // OBJECT_PRINT 1127 #endif // OBJECT_PRINT
1120 1128
1121 1129
1122 } } // namespace v8::internal 1130 } } // namespace v8::internal
OLDNEW
« 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