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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 } | 458 } |
459 os << "\n - private: " << is_private(); | 459 os << "\n - private: " << is_private(); |
460 os << "\n"; | 460 os << "\n"; |
461 } | 461 } |
462 | 462 |
463 | 463 |
464 void Map::MapPrint(std::ostream& os) { // NOLINT | 464 void Map::MapPrint(std::ostream& os) { // NOLINT |
465 HeapObject::PrintHeader(os, "Map"); | 465 HeapObject::PrintHeader(os, "Map"); |
466 os << " - type: " << TypeToString(instance_type()) << "\n"; | 466 os << " - type: " << TypeToString(instance_type()) << "\n"; |
467 os << " - instance size: " << instance_size() << "\n"; | 467 os << " - instance size: " << instance_size() << "\n"; |
468 os << " - inobject properties: " << inobject_properties() << "\n"; | 468 if (IsJSObjectMap()) { |
| 469 os << " - inobject properties: " << GetInObjectProperties() << "\n"; |
| 470 } |
469 os << " - elements kind: " << ElementsKindToString(elements_kind()) << "\n"; | 471 os << " - elements kind: " << ElementsKindToString(elements_kind()) << "\n"; |
470 os << " - unused property fields: " << unused_property_fields() << "\n"; | 472 os << " - unused property fields: " << unused_property_fields() << "\n"; |
471 if (is_deprecated()) os << " - deprecated_map\n"; | 473 if (is_deprecated()) os << " - deprecated_map\n"; |
472 if (is_stable()) os << " - stable_map\n"; | 474 if (is_stable()) os << " - stable_map\n"; |
473 if (is_dictionary_map()) os << " - dictionary_map\n"; | 475 if (is_dictionary_map()) os << " - dictionary_map\n"; |
474 if (is_hidden_prototype()) os << " - hidden_prototype\n"; | 476 if (is_hidden_prototype()) os << " - hidden_prototype\n"; |
475 if (has_named_interceptor()) os << " - named_interceptor\n"; | 477 if (has_named_interceptor()) os << " - named_interceptor\n"; |
476 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; | 478 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; |
477 if (is_undetectable()) os << " - undetectable\n"; | 479 if (is_undetectable()) os << " - undetectable\n"; |
478 if (has_instance_call_handler()) os << " - instance_call_handler\n"; | 480 if (has_instance_call_handler()) os << " - instance_call_handler\n"; |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 } | 1283 } |
1282 } | 1284 } |
1283 | 1285 |
1284 | 1286 |
1285 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1287 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1286 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1288 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
1287 } | 1289 } |
1288 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1290 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1289 } // namespace internal | 1291 } // namespace internal |
1290 } // namespace v8 | 1292 } // namespace v8 |
OLD | NEW |