| 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/objects.h" | 5 #include "src/objects.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/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); | 1074 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); |
| 1075 os << " - tag: " << Brief(tag()); | 1075 os << " - tag: " << Brief(tag()); |
| 1076 os << "\n - property_list: " << Brief(property_list()); | 1076 os << "\n - property_list: " << Brief(property_list()); |
| 1077 os << "\n - property_accessors: " << Brief(property_accessors()); | 1077 os << "\n - property_accessors: " << Brief(property_accessors()); |
| 1078 os << "\n - constructor: " << Brief(constructor()); | 1078 os << "\n - constructor: " << Brief(constructor()); |
| 1079 os << "\n - internal_field_count: " << Brief(internal_field_count()); | 1079 os << "\n - internal_field_count: " << Brief(internal_field_count()); |
| 1080 os << "\n"; | 1080 os << "\n"; |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 | 1083 |
| 1084 void TypeSwitchInfo::TypeSwitchInfoPrint(std::ostream& os) { // NOLINT | |
| 1085 HeapObject::PrintHeader(os, "TypeSwitchInfo"); | |
| 1086 os << "\n - types: " << Brief(types()); | |
| 1087 os << "\n"; | |
| 1088 } | |
| 1089 | |
| 1090 | |
| 1091 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT | 1084 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT |
| 1092 HeapObject::PrintHeader(os, "AllocationSite"); | 1085 HeapObject::PrintHeader(os, "AllocationSite"); |
| 1093 os << " - weak_next: " << Brief(weak_next()); | 1086 os << " - weak_next: " << Brief(weak_next()); |
| 1094 os << "\n - dependent code: " << Brief(dependent_code()); | 1087 os << "\n - dependent code: " << Brief(dependent_code()); |
| 1095 os << "\n - nested site: " << Brief(nested_site()); | 1088 os << "\n - nested site: " << Brief(nested_site()); |
| 1096 os << "\n - memento found count: " | 1089 os << "\n - memento found count: " |
| 1097 << Brief(Smi::FromInt(memento_found_count())); | 1090 << Brief(Smi::FromInt(memento_found_count())); |
| 1098 os << "\n - memento create count: " | 1091 os << "\n - memento create count: " |
| 1099 << Brief(Smi::FromInt(memento_create_count())); | 1092 << Brief(Smi::FromInt(memento_create_count())); |
| 1100 os << "\n - pretenure decision: " | 1093 os << "\n - pretenure decision: " |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1331 Object* transitions = map()->raw_transitions(); | 1324 Object* transitions = map()->raw_transitions(); |
| 1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1333 if (num_transitions == 0) return; | 1326 if (num_transitions == 0) return; |
| 1334 os << "\n - transitions"; | 1327 os << "\n - transitions"; |
| 1335 TransitionArray::PrintTransitions(os, transitions, false); | 1328 TransitionArray::PrintTransitions(os, transitions, false); |
| 1336 } | 1329 } |
| 1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1338 } // namespace internal | 1331 } // namespace internal |
| 1339 } // namespace v8 | 1332 } // namespace v8 |
| OLD | NEW |