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

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: re-upload - catch up to 8/19 level Created 6 years, 3 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/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 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 531 os << "\n [" << i << "]: int64: " << get_int64_entry(i)
532 << " (as double: " << get_int64_entry_as_double(i) << ")";
532 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) { 533 } else if (i <= last_index(CODE_PTR, SMALL_SECTION)) {
533 os << "\n [" << i << "]: code target pointer: " 534 os << "\n [" << i << "]: code target pointer: "
534 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 535 << reinterpret_cast<void*>(get_code_ptr_entry(i));
535 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) { 536 } else if (i <= last_index(HEAP_PTR, SMALL_SECTION)) {
536 os << "\n [" << i << "]: heap pointer: " 537 os << "\n [" << i << "]: heap pointer: "
537 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 538 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
538 } else if (i <= last_index(INT32, SMALL_SECTION)) { 539 } else if (i <= last_index(INT32, SMALL_SECTION)) {
539 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 540 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
540 } 541 }
541 } 542 }
542 if (is_extended_layout()) { 543 if (is_extended_layout()) {
543 os << "\n Extended section:"; 544 os << "\n Extended section:";
544 for (int i = first_extended_section_index(); 545 for (int i = first_extended_section_index();
545 i <= last_index(INT32, EXTENDED_SECTION); i++) { 546 i <= last_index(INT32, EXTENDED_SECTION); i++) {
546 if (i < last_index(INT64, EXTENDED_SECTION)) { 547 if (i <= last_index(INT64, EXTENDED_SECTION)) {
547 os << "\n [" << i << "]: double: " << get_int64_entry_as_double(i); 548 os << "\n [" << i << "]: int64: " << get_int64_entry(i)
549 << " (as double: " << get_int64_entry_as_double(i) << ")";
548 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) { 550 } else if (i <= last_index(CODE_PTR, EXTENDED_SECTION)) {
549 os << "\n [" << i << "]: code target pointer: " 551 os << "\n [" << i << "]: code target pointer: "
550 << reinterpret_cast<void*>(get_code_ptr_entry(i)); 552 << reinterpret_cast<void*>(get_code_ptr_entry(i));
551 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) { 553 } else if (i <= last_index(HEAP_PTR, EXTENDED_SECTION)) {
552 os << "\n [" << i << "]: heap pointer: " 554 os << "\n [" << i << "]: heap pointer: "
553 << reinterpret_cast<void*>(get_heap_ptr_entry(i)); 555 << reinterpret_cast<void*>(get_heap_ptr_entry(i));
554 } else if (i <= last_index(INT32, EXTENDED_SECTION)) { 556 } else if (i <= last_index(INT32, EXTENDED_SECTION)) {
555 os << "\n [" << i << "]: int32: " << get_int32_entry(i); 557 os << "\n [" << i << "]: int32: " << get_int32_entry(i);
556 } 558 }
557 } 559 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1115 }
1114 } 1116 }
1115 os << "\n"; 1117 os << "\n";
1116 } 1118 }
1117 1119
1118 1120
1119 #endif // OBJECT_PRINT 1121 #endif // OBJECT_PRINT
1120 1122
1121 1123
1122 } } // namespace v8::internal 1124 } } // namespace v8::internal
OLDNEW
« src/hydrogen-bch.cc ('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