OLD | NEW |
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 Loading... |
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; | |
201 case JS_MESSAGE_OBJECT_TYPE: | 198 case JS_MESSAGE_OBJECT_TYPE: |
202 JSMessageObject::cast(this)->JSMessageObjectPrint(out); | 199 JSMessageObject::cast(this)->JSMessageObjectPrint(out); |
203 break; | 200 break; |
204 case CELL_TYPE: | 201 case CELL_TYPE: |
205 Cell::cast(this)->CellPrint(out); | 202 Cell::cast(this)->CellPrint(out); |
206 break; | 203 break; |
207 case PROPERTY_CELL_TYPE: | 204 case PROPERTY_CELL_TYPE: |
208 PropertyCell::cast(this)->PropertyCellPrint(out); | 205 PropertyCell::cast(this)->PropertyCellPrint(out); |
209 break; | 206 break; |
210 case JS_ARRAY_BUFFER_TYPE: | 207 case JS_ARRAY_BUFFER_TYPE: |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 PrintF(out, "\n - is expression = %d", is_expression()); | 883 PrintF(out, "\n - is expression = %d", is_expression()); |
887 PrintF(out, "\n - debug info = "); | 884 PrintF(out, "\n - debug info = "); |
888 debug_info()->ShortPrint(out); | 885 debug_info()->ShortPrint(out); |
889 PrintF(out, "\n - length = %d", length()); | 886 PrintF(out, "\n - length = %d", length()); |
890 PrintF(out, "\n - optimized_code_map = "); | 887 PrintF(out, "\n - optimized_code_map = "); |
891 optimized_code_map()->ShortPrint(out); | 888 optimized_code_map()->ShortPrint(out); |
892 PrintF(out, "\n"); | 889 PrintF(out, "\n"); |
893 } | 890 } |
894 | 891 |
895 | 892 |
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 | |
915 void JSGlobalProxy::JSGlobalProxyPrint(FILE* out) { | 893 void JSGlobalProxy::JSGlobalProxyPrint(FILE* out) { |
916 PrintF(out, "global_proxy "); | 894 PrintF(out, "global_proxy "); |
917 JSObjectPrint(out); | 895 JSObjectPrint(out); |
918 PrintF(out, "native context : "); | 896 PrintF(out, "native context : "); |
919 native_context()->ShortPrint(out); | 897 native_context()->ShortPrint(out); |
920 PrintF(out, "\n"); | 898 PrintF(out, "\n"); |
921 } | 899 } |
922 | 900 |
923 | 901 |
924 void JSGlobalObject::JSGlobalObjectPrint(FILE* out) { | 902 void JSGlobalObject::JSGlobalObjectPrint(FILE* out) { |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 } | 1232 } |
1255 } | 1233 } |
1256 PrintF(out, "\n"); | 1234 PrintF(out, "\n"); |
1257 } | 1235 } |
1258 | 1236 |
1259 | 1237 |
1260 #endif // OBJECT_PRINT | 1238 #endif // OBJECT_PRINT |
1261 | 1239 |
1262 | 1240 |
1263 } } // namespace v8::internal | 1241 } } // namespace v8::internal |
OLD | NEW |