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

Side by Side Diff: src/objects-printer.cc

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/optimizing-compiler-thread.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 UNREACHABLE(); 516 UNREACHABLE();
517 return "UNKNOWN"; // Keep the compiler happy. 517 return "UNKNOWN"; // Keep the compiler happy.
518 } 518 }
519 519
520 520
521 void Symbol::SymbolPrint(FILE* out) { 521 void Symbol::SymbolPrint(FILE* out) {
522 HeapObject::PrintHeader(out, "Symbol"); 522 HeapObject::PrintHeader(out, "Symbol");
523 PrintF(out, " - hash: %d\n", Hash()); 523 PrintF(out, " - hash: %d\n", Hash());
524 PrintF(out, " - name: "); 524 PrintF(out, " - name: ");
525 name()->ShortPrint(); 525 name()->ShortPrint();
526 PrintF(out, " - private: %d\n", is_private());
526 PrintF(out, "\n"); 527 PrintF(out, "\n");
527 } 528 }
528 529
529 530
530 void Map::MapPrint(FILE* out) { 531 void Map::MapPrint(FILE* out) {
531 HeapObject::PrintHeader(out, "Map"); 532 HeapObject::PrintHeader(out, "Map");
532 PrintF(out, " - type: %s\n", TypeToString(instance_type())); 533 PrintF(out, " - type: %s\n", TypeToString(instance_type()));
533 PrintF(out, " - instance size: %d\n", instance_size()); 534 PrintF(out, " - instance size: %d\n", instance_size());
534 PrintF(out, " - inobject properties: %d\n", inobject_properties()); 535 PrintF(out, " - inobject properties: %d\n", inobject_properties());
535 PrintF(out, " - elements kind: "); 536 PrintF(out, " - elements kind: ");
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 HeapObject::PrintHeader(out, "JSTypedArray"); 824 HeapObject::PrintHeader(out, "JSTypedArray");
824 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 825 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
825 PrintF(out, " - buffer ="); 826 PrintF(out, " - buffer =");
826 buffer()->ShortPrint(out); 827 buffer()->ShortPrint(out);
827 PrintF(out, "\n - byte_offset = "); 828 PrintF(out, "\n - byte_offset = ");
828 byte_offset()->ShortPrint(out); 829 byte_offset()->ShortPrint(out);
829 PrintF(out, "\n - byte_length = "); 830 PrintF(out, "\n - byte_length = ");
830 byte_length()->ShortPrint(out); 831 byte_length()->ShortPrint(out);
831 PrintF(out, "\n - length = "); 832 PrintF(out, "\n - length = ");
832 length()->ShortPrint(out); 833 length()->ShortPrint(out);
833 PrintF("\n"); 834 PrintF(out, "\n");
834 PrintElements(out); 835 PrintElements(out);
835 } 836 }
836 837
837 838
838 void JSDataView::JSDataViewPrint(FILE* out) { 839 void JSDataView::JSDataViewPrint(FILE* out) {
839 HeapObject::PrintHeader(out, "JSDataView"); 840 HeapObject::PrintHeader(out, "JSDataView");
840 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 841 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
841 PrintF(out, " - buffer ="); 842 PrintF(out, " - buffer =");
842 buffer()->ShortPrint(out); 843 buffer()->ShortPrint(out);
843 PrintF(out, "\n - byte_offset = "); 844 PrintF(out, "\n - byte_offset = ");
844 byte_offset()->ShortPrint(out); 845 byte_offset()->ShortPrint(out);
845 PrintF(out, "\n - byte_length = "); 846 PrintF(out, "\n - byte_length = ");
846 byte_length()->ShortPrint(out); 847 byte_length()->ShortPrint(out);
847 PrintF("\n"); 848 PrintF(out, "\n");
848 } 849 }
849 850
850 851
851 void JSFunction::JSFunctionPrint(FILE* out) { 852 void JSFunction::JSFunctionPrint(FILE* out) {
852 HeapObject::PrintHeader(out, "Function"); 853 HeapObject::PrintHeader(out, "Function");
853 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 854 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
854 PrintF(out, " - initial_map = "); 855 PrintF(out, " - initial_map = ");
855 if (has_initial_map()) { 856 if (has_initial_map()) {
856 initial_map()->ShortPrint(out); 857 initial_map()->ShortPrint(out);
857 } 858 }
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 } 1257 }
1257 } 1258 }
1258 PrintF(out, "\n"); 1259 PrintF(out, "\n");
1259 } 1260 }
1260 1261
1261 1262
1262 #endif // OBJECT_PRINT 1263 #endif // OBJECT_PRINT
1263 1264
1264 1265
1265 } } // namespace v8::internal 1266 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698