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

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

Issue 801783002: Map and Descriptor printing enhanced a bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | src/property.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 void Map::MapPrint(std::ostream& os) { // NOLINT 402 void Map::MapPrint(std::ostream& os) { // NOLINT
403 HeapObject::PrintHeader(os, "Map"); 403 HeapObject::PrintHeader(os, "Map");
404 os << " - type: " << TypeToString(instance_type()) << "\n"; 404 os << " - type: " << TypeToString(instance_type()) << "\n";
405 os << " - instance size: " << instance_size() << "\n"; 405 os << " - instance size: " << instance_size() << "\n";
406 os << " - inobject properties: " << inobject_properties() << "\n"; 406 os << " - inobject properties: " << inobject_properties() << "\n";
407 os << " - elements kind: " << ElementsKindToString(elements_kind()); 407 os << " - elements kind: " << ElementsKindToString(elements_kind());
408 os << "\n - pre-allocated property fields: " 408 os << "\n - pre-allocated property fields: "
409 << pre_allocated_property_fields() << "\n"; 409 << pre_allocated_property_fields() << "\n";
410 os << " - unused property fields: " << unused_property_fields() << "\n"; 410 os << " - unused property fields: " << unused_property_fields() << "\n";
411 if (is_deprecated()) os << " - deprecated_map\n";
411 if (is_dictionary_map()) os << " - dictionary_map\n"; 412 if (is_dictionary_map()) os << " - dictionary_map\n";
412 if (is_prototype_map()) os << " - prototype_map\n"; 413 if (is_prototype_map()) os << " - prototype_map\n";
413 if (is_hidden_prototype()) os << " - hidden_prototype\n"; 414 if (is_hidden_prototype()) os << " - hidden_prototype\n";
414 if (has_named_interceptor()) os << " - named_interceptor\n"; 415 if (has_named_interceptor()) os << " - named_interceptor\n";
415 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; 416 if (has_indexed_interceptor()) os << " - indexed_interceptor\n";
416 if (is_undetectable()) os << " - undetectable\n"; 417 if (is_undetectable()) os << " - undetectable\n";
417 if (has_instance_call_handler()) os << " - instance_call_handler\n"; 418 if (has_instance_call_handler()) os << " - instance_call_handler\n";
418 if (is_access_check_needed()) os << " - access_check_needed\n"; 419 if (is_access_check_needed()) os << " - access_check_needed\n";
419 if (!is_extensible()) os << " - non-extensible\n"; 420 if (!is_extensible()) os << " - non-extensible\n";
420 os << " - back pointer: " << Brief(GetBackPointer()); 421 os << " - back pointer: " << Brief(GetBackPointer());
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 } 1207 }
1207 } 1208 }
1208 1209
1209 1210
1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1211 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1211 if (!map()->HasTransitionArray()) return; 1212 if (!map()->HasTransitionArray()) return;
1212 map()->transitions()->PrintTransitions(os, false); 1213 map()->transitions()->PrintTransitions(os, false);
1213 } 1214 }
1214 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1215 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1215 } } // namespace v8::internal 1216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/property.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698