OLD | NEW |
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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 void Map::MapPrint(std::ostream& os) { // NOLINT | 409 void Map::MapPrint(std::ostream& os) { // NOLINT |
410 HeapObject::PrintHeader(os, "Map"); | 410 HeapObject::PrintHeader(os, "Map"); |
411 os << " - type: " << TypeToString(instance_type()) << "\n"; | 411 os << " - type: " << TypeToString(instance_type()) << "\n"; |
412 os << " - instance size: " << instance_size() << "\n"; | 412 os << " - instance size: " << instance_size() << "\n"; |
413 os << " - inobject properties: " << inobject_properties() << "\n"; | 413 os << " - inobject properties: " << inobject_properties() << "\n"; |
414 os << " - elements kind: " << ElementsKindToString(elements_kind()); | 414 os << " - elements kind: " << ElementsKindToString(elements_kind()); |
415 os << "\n - pre-allocated property fields: " | 415 os << "\n - pre-allocated property fields: " |
416 << pre_allocated_property_fields() << "\n"; | 416 << pre_allocated_property_fields() << "\n"; |
417 os << " - unused property fields: " << unused_property_fields() << "\n"; | 417 os << " - unused property fields: " << unused_property_fields() << "\n"; |
418 if (is_deprecated()) os << " - deprecated_map\n"; | 418 if (is_deprecated()) os << " - deprecated_map\n"; |
| 419 if (is_stable()) os << " - stable_map\n"; |
419 if (is_dictionary_map()) os << " - dictionary_map\n"; | 420 if (is_dictionary_map()) os << " - dictionary_map\n"; |
420 if (is_prototype_map()) { | 421 if (is_prototype_map()) { |
421 os << " - prototype_map\n"; | 422 os << " - prototype_map\n"; |
422 os << " - prototype info: " << Brief(prototype_info()); | 423 os << " - prototype info: " << Brief(prototype_info()); |
423 } else { | 424 } else { |
424 os << " - back pointer: " << Brief(GetBackPointer()); | 425 os << " - back pointer: " << Brief(GetBackPointer()); |
425 } | 426 } |
426 if (is_hidden_prototype()) os << " - hidden_prototype\n"; | 427 if (is_hidden_prototype()) os << " - hidden_prototype\n"; |
427 if (has_named_interceptor()) os << " - named_interceptor\n"; | 428 if (has_named_interceptor()) os << " - named_interceptor\n"; |
428 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; | 429 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 } | 1172 } |
1172 } | 1173 } |
1173 | 1174 |
1174 | 1175 |
1175 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1176 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1176 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1177 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
1177 } | 1178 } |
1178 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1179 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1179 } // namespace internal | 1180 } // namespace internal |
1180 } // namespace v8 | 1181 } // namespace v8 |
OLD | NEW |