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

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

Issue 11663005: Adapt Danno's Track Allocation Info idea to fast literals. When allocating a literal array, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few more review comments Created 7 years, 11 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/x64/code-stubs-x64.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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 } 995 }
996 996
997 997
998 void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) { 998 void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) {
999 HeapObject::PrintHeader(out, "TypeSwitchInfo"); 999 HeapObject::PrintHeader(out, "TypeSwitchInfo");
1000 PrintF(out, "\n - types: "); 1000 PrintF(out, "\n - types: ");
1001 types()->ShortPrint(out); 1001 types()->ShortPrint(out);
1002 } 1002 }
1003 1003
1004 1004
1005 void AllocationSiteInfo::AllocationSiteInfoPrint(FILE* out) {
1006 HeapObject::PrintHeader(out, "AllocationSiteInfo");
1007 PrintF(out, " - payload: ");
1008 if (payload()->IsJSArray()) {
1009 PrintF(out, "Array literal ");
1010 payload()->ShortPrint(out);
1011 PrintF(out, "\n");
1012 return;
1013 }
1014
1015 PrintF(out, "unknown payload ");
1016 payload()->ShortPrint(out);
1017 PrintF(out, "\n");
1018 }
1019
1020
1005 void Script::ScriptPrint(FILE* out) { 1021 void Script::ScriptPrint(FILE* out) {
1006 HeapObject::PrintHeader(out, "Script"); 1022 HeapObject::PrintHeader(out, "Script");
1007 PrintF(out, "\n - source: "); 1023 PrintF(out, "\n - source: ");
1008 source()->ShortPrint(out); 1024 source()->ShortPrint(out);
1009 PrintF(out, "\n - name: "); 1025 PrintF(out, "\n - name: ");
1010 name()->ShortPrint(out); 1026 name()->ShortPrint(out);
1011 PrintF(out, "\n - line_offset: "); 1027 PrintF(out, "\n - line_offset: ");
1012 line_offset()->ShortPrint(out); 1028 line_offset()->ShortPrint(out);
1013 PrintF(out, "\n - column_offset: "); 1029 PrintF(out, "\n - column_offset: ");
1014 column_offset()->ShortPrint(out); 1030 column_offset()->ShortPrint(out);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 } 1115 }
1100 } 1116 }
1101 PrintF(out, "\n"); 1117 PrintF(out, "\n");
1102 } 1118 }
1103 1119
1104 1120
1105 #endif // OBJECT_PRINT 1121 #endif // OBJECT_PRINT
1106 1122
1107 1123
1108 } } // namespace v8::internal 1124 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698