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

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

Issue 7966019: Add elements kind to maps debugging output (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698