OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 default: return "UNKNOWN"; | 525 default: return "UNKNOWN"; |
526 } | 526 } |
527 } | 527 } |
528 | 528 |
529 | 529 |
530 void Map::MapPrint(FILE* out) { | 530 void Map::MapPrint(FILE* out) { |
531 HeapObject::PrintHeader(out, "Map"); | 531 HeapObject::PrintHeader(out, "Map"); |
532 PrintF(out, " - type: %s\n", TypeToString(instance_type())); | 532 PrintF(out, " - type: %s\n", TypeToString(instance_type())); |
533 PrintF(out, " - instance size: %d\n", instance_size()); | 533 PrintF(out, " - instance size: %d\n", instance_size()); |
534 PrintF(out, " - inobject properties: %d\n", inobject_properties()); | 534 PrintF(out, " - inobject properties: %d\n", inobject_properties()); |
535 PrintF(out, " - pre-allocated property fields: %d\n", | 535 PrintF(out, " - elements kind: "); |
| 536 PrintElementsKind(out, elements_kind()); |
| 537 PrintF(out, "\n - pre-allocated property fields: %d\n", |
536 pre_allocated_property_fields()); | 538 pre_allocated_property_fields()); |
537 PrintF(out, " - unused property fields: %d\n", unused_property_fields()); | 539 PrintF(out, " - unused property fields: %d\n", unused_property_fields()); |
538 if (is_hidden_prototype()) { | 540 if (is_hidden_prototype()) { |
539 PrintF(out, " - hidden_prototype\n"); | 541 PrintF(out, " - hidden_prototype\n"); |
540 } | 542 } |
541 if (has_named_interceptor()) { | 543 if (has_named_interceptor()) { |
542 PrintF(out, " - named_interceptor\n"); | 544 PrintF(out, " - named_interceptor\n"); |
543 } | 545 } |
544 if (has_indexed_interceptor()) { | 546 if (has_indexed_interceptor()) { |
545 PrintF(out, " - indexed_interceptor\n"); | 547 PrintF(out, " - indexed_interceptor\n"); |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 desc.Print(out); | 982 desc.Print(out); |
981 } | 983 } |
982 PrintF(out, "\n"); | 984 PrintF(out, "\n"); |
983 } | 985 } |
984 | 986 |
985 | 987 |
986 #endif // OBJECT_PRINT | 988 #endif // OBJECT_PRINT |
987 | 989 |
988 | 990 |
989 } } // namespace v8::internal | 991 } } // namespace v8::internal |
OLD | NEW |