| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 break; | 177 break; |
| 178 case SHARED_FUNCTION_INFO_TYPE: | 178 case SHARED_FUNCTION_INFO_TYPE: |
| 179 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out); | 179 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out); |
| 180 break; | 180 break; |
| 181 case JS_MESSAGE_OBJECT_TYPE: | 181 case JS_MESSAGE_OBJECT_TYPE: |
| 182 JSMessageObject::cast(this)->JSMessageObjectPrint(out); | 182 JSMessageObject::cast(this)->JSMessageObjectPrint(out); |
| 183 break; | 183 break; |
| 184 case JS_GLOBAL_PROPERTY_CELL_TYPE: | 184 case JS_GLOBAL_PROPERTY_CELL_TYPE: |
| 185 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out); | 185 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out); |
| 186 break; | 186 break; |
| 187 case JS_ARRAY_BUFFER_TYPE: |
| 188 JSArrayBuffer::cast(this)->JSArrayBufferPrint(out); |
| 187 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 189 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| 188 case NAME##_TYPE: \ | 190 case NAME##_TYPE: \ |
| 189 Name::cast(this)->Name##Print(out); \ | 191 Name::cast(this)->Name##Print(out); \ |
| 190 break; | 192 break; |
| 191 STRUCT_LIST(MAKE_STRUCT_CASE) | 193 STRUCT_LIST(MAKE_STRUCT_CASE) |
| 192 #undef MAKE_STRUCT_CASE | 194 #undef MAKE_STRUCT_CASE |
| 193 | 195 |
| 194 default: | 196 default: |
| 195 PrintF(out, "UNKNOWN TYPE %d", map()->instance_type()); | 197 PrintF(out, "UNKNOWN TYPE %d", map()->instance_type()); |
| 196 UNREACHABLE(); | 198 UNREACHABLE(); |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 790 |
| 789 void JSWeakMap::JSWeakMapPrint(FILE* out) { | 791 void JSWeakMap::JSWeakMapPrint(FILE* out) { |
| 790 HeapObject::PrintHeader(out, "JSWeakMap"); | 792 HeapObject::PrintHeader(out, "JSWeakMap"); |
| 791 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 793 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
| 792 PrintF(out, " - table = "); | 794 PrintF(out, " - table = "); |
| 793 table()->ShortPrint(out); | 795 table()->ShortPrint(out); |
| 794 PrintF(out, "\n"); | 796 PrintF(out, "\n"); |
| 795 } | 797 } |
| 796 | 798 |
| 797 | 799 |
| 800 void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { |
| 801 HeapObject::PrintHeader(out, "JSArrayBuffer"); |
| 802 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
| 803 PrintF(out, " - backing_store = -0x%p\n", backing_store()); |
| 804 PrintF(out, " - byte_length = "); |
| 805 byte_length()->ShortPrint(out); |
| 806 PrintF(out, "\n"); |
| 807 } |
| 808 |
| 809 |
| 798 void JSFunction::JSFunctionPrint(FILE* out) { | 810 void JSFunction::JSFunctionPrint(FILE* out) { |
| 799 HeapObject::PrintHeader(out, "Function"); | 811 HeapObject::PrintHeader(out, "Function"); |
| 800 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 812 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
| 801 PrintF(out, " - initial_map = "); | 813 PrintF(out, " - initial_map = "); |
| 802 if (has_initial_map()) { | 814 if (has_initial_map()) { |
| 803 initial_map()->ShortPrint(out); | 815 initial_map()->ShortPrint(out); |
| 804 } | 816 } |
| 805 PrintF(out, "\n - shared_info = "); | 817 PrintF(out, "\n - shared_info = "); |
| 806 shared()->ShortPrint(out); | 818 shared()->ShortPrint(out); |
| 807 PrintF(out, "\n - name = "); | 819 PrintF(out, "\n - name = "); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 } | 1185 } |
| 1174 } | 1186 } |
| 1175 PrintF(out, "\n"); | 1187 PrintF(out, "\n"); |
| 1176 } | 1188 } |
| 1177 | 1189 |
| 1178 | 1190 |
| 1179 #endif // OBJECT_PRINT | 1191 #endif // OBJECT_PRINT |
| 1180 | 1192 |
| 1181 | 1193 |
| 1182 } } // namespace v8::internal | 1194 } } // namespace v8::internal |
| OLD | NEW |