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

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

Issue 43273004: Allow redirecting disassembly and deoptimization traces into a file. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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.cc ('k') | src/safepoint-table.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 // 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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 HeapObject::PrintHeader(out, "JSTypedArray"); 823 HeapObject::PrintHeader(out, "JSTypedArray");
824 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 824 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
825 PrintF(out, " - buffer ="); 825 PrintF(out, " - buffer =");
826 buffer()->ShortPrint(out); 826 buffer()->ShortPrint(out);
827 PrintF(out, "\n - byte_offset = "); 827 PrintF(out, "\n - byte_offset = ");
828 byte_offset()->ShortPrint(out); 828 byte_offset()->ShortPrint(out);
829 PrintF(out, "\n - byte_length = "); 829 PrintF(out, "\n - byte_length = ");
830 byte_length()->ShortPrint(out); 830 byte_length()->ShortPrint(out);
831 PrintF(out, "\n - length = "); 831 PrintF(out, "\n - length = ");
832 length()->ShortPrint(out); 832 length()->ShortPrint(out);
833 PrintF("\n"); 833 PrintF(out, "\n");
834 PrintElements(out); 834 PrintElements(out);
835 } 835 }
836 836
837 837
838 void JSDataView::JSDataViewPrint(FILE* out) { 838 void JSDataView::JSDataViewPrint(FILE* out) {
839 HeapObject::PrintHeader(out, "JSDataView"); 839 HeapObject::PrintHeader(out, "JSDataView");
840 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 840 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
841 PrintF(out, " - buffer ="); 841 PrintF(out, " - buffer =");
842 buffer()->ShortPrint(out); 842 buffer()->ShortPrint(out);
843 PrintF(out, "\n - byte_offset = "); 843 PrintF(out, "\n - byte_offset = ");
844 byte_offset()->ShortPrint(out); 844 byte_offset()->ShortPrint(out);
845 PrintF(out, "\n - byte_length = "); 845 PrintF(out, "\n - byte_length = ");
846 byte_length()->ShortPrint(out); 846 byte_length()->ShortPrint(out);
847 PrintF("\n"); 847 PrintF(out, "\n");
848 } 848 }
849 849
850 850
851 void JSFunction::JSFunctionPrint(FILE* out) { 851 void JSFunction::JSFunctionPrint(FILE* out) {
852 HeapObject::PrintHeader(out, "Function"); 852 HeapObject::PrintHeader(out, "Function");
853 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); 853 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
854 PrintF(out, " - initial_map = "); 854 PrintF(out, " - initial_map = ");
855 if (has_initial_map()) { 855 if (has_initial_map()) {
856 initial_map()->ShortPrint(out); 856 initial_map()->ShortPrint(out);
857 } 857 }
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 } 1256 }
1257 } 1257 }
1258 PrintF(out, "\n"); 1258 PrintF(out, "\n");
1259 } 1259 }
1260 1260
1261 1261
1262 #endif // OBJECT_PRINT 1262 #endif // OBJECT_PRINT
1263 1263
1264 1264
1265 } } // namespace v8::internal 1265 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/safepoint-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698