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

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: 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
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/jsregexp.h" 9 #include "src/jsregexp.h"
10 #include "src/objects-visiting.h" 10 #include "src/objects-visiting.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 } 517 }
518 } 518 }
519 os << "\n"; 519 os << "\n";
520 } 520 }
521 521
522 522
523 void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT 523 void ConstantPoolArray::ConstantPoolArrayPrint(OStream& os) { // NOLINT
524 HeapObject::PrintHeader(os, "ConstantPoolArray"); 524 HeapObject::PrintHeader(os, "ConstantPoolArray");
525 os << " - length: " << length(); 525 os << " - length: " << length();
526 for (int i = 0; i <= last_index(INT32, SMALL_SECTION); i++) { 526 for (int i = 0; i <= last_index(INT32, SMALL_SECTION); i++) {
527 if (i < last_index(INT64, SMALL_SECTION)) { 527 if (i <= last_index(INT64, SMALL_SECTION)) {
528 #if V8_TARGET_ARCH_64_BIT
529 os << "\n [" << i << "]: int64: " << get_int64_entry(i);
530 #else
528 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 531 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
532 #endif
529 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) { 533 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) {
530 os << "\n [" << i << "]: code target pointer: " 534 os << "\n [" << i << "]: code target pointer: "
531 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 535 << reinterpret_cast<void*>(get_code_ptr_entry(i));
532 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) { 536 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) {
533 os << "\n [" << i << "]: heap pointer: " 537 os << "\n [" << i << "]: heap pointer: "
534 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 538 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
535 } else if (i <= last_index(INT32, SMALL_SECTION)) { 539 } else if (i <= last_index(INT32, SMALL_SECTION)) {
536 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 540 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
537 } 541 }
538 } 542 }
539 if (is_extended_layout()) { 543 if (is_extended_layout()) {
540 os << "\n Extended section:"; 544 os << "\n Extended section:";
541 for (int i = first_extended_section_index(); 545 for (int i = first_extended_section_index();
542 i <= last_index(INT32, EXTENDED_SECTION); i++) { 546 i <= last_index(INT32, EXTENDED_SECTION); i++) {
543 if (i < last_index(INT64, EXTENDED_SECTION)) { 547 if (i <= last_index(INT64, EXTENDED_SECTION)) {
548 #if V8_TARGET_ARCH_64_BIT
549 os << "\n [" << i << "]: int64: " << get_int64_entry(i);
550 #else
544 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 551 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i);
552 #endif
545 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) { 553 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) {
546 os << "\n [" << i << "]: code target pointer: " 554 os << "\n [" << i << "]: code target pointer: "
547 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 555 << reinterpret_cast<void*>(get_code_ptr_entry(i));
548 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) { 556 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) {
549 os << "\n [" << i << "]: heap pointer: " 557 os << "\n [" << i << "]: heap pointer: "
550 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 558 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
551 } else if (i <= last_index(INT32, EXTENDED_SECTION)) { 559 } else if (i <= last_index(INT32, EXTENDED_SECTION)) {
552 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 560 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
553 } 561 }
554 } 562 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 } 1118 }
1111 } 1119 }
1112 os << "\n"; 1120 os << "\n";
1113 } 1121 }
1114 1122
1115 1123
1116 #endif // OBJECT_PRINT 1124 #endif // OBJECT_PRINT
1117 1125
1118 1126
1119 } } // namespace v8::internal 1127 } } // namespace v8::internal
OLDNEW
« src/objects-inl.h ('K') | « 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