| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 STRUCT_LIST(MAKE_STRUCT_CASE) | 545 STRUCT_LIST(MAKE_STRUCT_CASE) |
| 546 #undef MAKE_STRUCT_CASE | 546 #undef MAKE_STRUCT_CASE |
| 547 default: return "UNKNOWN"; | 547 default: return "UNKNOWN"; |
| 548 } | 548 } |
| 549 } | 549 } |
| 550 | 550 |
| 551 | 551 |
| 552 void Symbol::SymbolPrint(FILE* out) { | 552 void Symbol::SymbolPrint(FILE* out) { |
| 553 HeapObject::PrintHeader(out, "Symbol"); | 553 HeapObject::PrintHeader(out, "Symbol"); |
| 554 PrintF(out, " - hash: %d\n", Hash()); | 554 PrintF(out, " - hash: %d\n", Hash()); |
| 555 PrintF(out, " - name: "); |
| 556 name()->ShortPrint(); |
| 557 PrintF(out, "\n"); |
| 555 } | 558 } |
| 556 | 559 |
| 557 | 560 |
| 558 void Map::MapPrint(FILE* out) { | 561 void Map::MapPrint(FILE* out) { |
| 559 HeapObject::PrintHeader(out, "Map"); | 562 HeapObject::PrintHeader(out, "Map"); |
| 560 PrintF(out, " - type: %s\n", TypeToString(instance_type())); | 563 PrintF(out, " - type: %s\n", TypeToString(instance_type())); |
| 561 PrintF(out, " - instance size: %d\n", instance_size()); | 564 PrintF(out, " - instance size: %d\n", instance_size()); |
| 562 PrintF(out, " - inobject properties: %d\n", inobject_properties()); | 565 PrintF(out, " - inobject properties: %d\n", inobject_properties()); |
| 563 PrintF(out, " - elements kind: "); | 566 PrintF(out, " - elements kind: "); |
| 564 PrintElementsKind(out, elements_kind()); | 567 PrintElementsKind(out, elements_kind()); |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 } | 1173 } |
| 1171 } | 1174 } |
| 1172 PrintF(out, "\n"); | 1175 PrintF(out, "\n"); |
| 1173 } | 1176 } |
| 1174 | 1177 |
| 1175 | 1178 |
| 1176 #endif // OBJECT_PRINT | 1179 #endif // OBJECT_PRINT |
| 1177 | 1180 |
| 1178 | 1181 |
| 1179 } } // namespace v8::internal | 1182 } } // namespace v8::internal |
| OLD | NEW |