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

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

Issue 23691002: Add OptimizedCodeEntry as a new heap object type. An optimized code entry represents an association… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 // 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 break; 188 break;
189 case JS_WEAK_SET_TYPE: 189 case JS_WEAK_SET_TYPE:
190 JSWeakSet::cast(this)->JSWeakSetPrint(out); 190 JSWeakSet::cast(this)->JSWeakSetPrint(out);
191 break; 191 break;
192 case FOREIGN_TYPE: 192 case FOREIGN_TYPE:
193 Foreign::cast(this)->ForeignPrint(out); 193 Foreign::cast(this)->ForeignPrint(out);
194 break; 194 break;
195 case SHARED_FUNCTION_INFO_TYPE: 195 case SHARED_FUNCTION_INFO_TYPE:
196 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out); 196 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out);
197 break; 197 break;
198 case OPTIMIZED_CODE_ENTRY_TYPE:
199 OptimizedCodeEntry::cast(this)->OptimizedCodeEntryPrint(out);
200 break;
198 case JS_MESSAGE_OBJECT_TYPE: 201 case JS_MESSAGE_OBJECT_TYPE:
199 JSMessageObject::cast(this)->JSMessageObjectPrint(out); 202 JSMessageObject::cast(this)->JSMessageObjectPrint(out);
200 break; 203 break;
201 case CELL_TYPE: 204 case CELL_TYPE:
202 Cell::cast(this)->CellPrint(out); 205 Cell::cast(this)->CellPrint(out);
203 break; 206 break;
204 case PROPERTY_CELL_TYPE: 207 case PROPERTY_CELL_TYPE:
205 PropertyCell::cast(this)->PropertyCellPrint(out); 208 PropertyCell::cast(this)->PropertyCellPrint(out);
206 break; 209 break;
207 case JS_ARRAY_BUFFER_TYPE: 210 case JS_ARRAY_BUFFER_TYPE:
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 PrintF(out, "\n - is expression = %d", is_expression()); 886 PrintF(out, "\n - is expression = %d", is_expression());
884 PrintF(out, "\n - debug info = "); 887 PrintF(out, "\n - debug info = ");
885 debug_info()->ShortPrint(out); 888 debug_info()->ShortPrint(out);
886 PrintF(out, "\n - length = %d", length()); 889 PrintF(out, "\n - length = %d", length());
887 PrintF(out, "\n - optimized_code_map = "); 890 PrintF(out, "\n - optimized_code_map = ");
888 optimized_code_map()->ShortPrint(out); 891 optimized_code_map()->ShortPrint(out);
889 PrintF(out, "\n"); 892 PrintF(out, "\n");
890 } 893 }
891 894
892 895
896 void OptimizedCodeEntry::OptimizedCodeEntryPrint(FILE* out) {
897 HeapObject::PrintHeader(out, "OptimizedCodeEntry");
898 PrintF(out, "\n - native_context = ");
899 native_context()->ShortPrint(out);
900 PrintF(out, "\n - function = ");
901 function()->ShortPrint(out);
902 PrintF(out, "\n - code = ");
903 code()->ShortPrint(out);
904 PrintF(out, "\n - literals = ");
905 literals()->ShortPrint(out);
906 PrintF(out, "\n - next_by_shared_info = ");
907 next_by_shared_info()->ShortPrint(out);
908 PrintF(out, "\n - next_by_native_context = ");
909 next_by_native_context()->ShortPrint(out);
910 PrintF(out, "\n - cacheable = %s", cacheable() ? "true" : "false");
911 PrintF(out, "\n");
912 }
913
914
893 void JSGlobalProxy::JSGlobalProxyPrint(FILE* out) { 915 void JSGlobalProxy::JSGlobalProxyPrint(FILE* out) {
894 PrintF(out, "global_proxy "); 916 PrintF(out, "global_proxy ");
895 JSObjectPrint(out); 917 JSObjectPrint(out);
896 PrintF(out, "native context : "); 918 PrintF(out, "native context : ");
897 native_context()->ShortPrint(out); 919 native_context()->ShortPrint(out);
898 PrintF(out, "\n"); 920 PrintF(out, "\n");
899 } 921 }
900 922
901 923
902 void JSGlobalObject::JSGlobalObjectPrint(FILE* out) { 924 void JSGlobalObject::JSGlobalObjectPrint(FILE* out) {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 } 1254 }
1233 } 1255 }
1234 PrintF(out, "\n"); 1256 PrintF(out, "\n");
1235 } 1257 }
1236 1258
1237 1259
1238 #endif // OBJECT_PRINT 1260 #endif // OBJECT_PRINT
1239 1261
1240 1262
1241 } } // namespace v8::internal 1263 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698