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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 } | 1137 } |
1138 | 1138 |
1139 | 1139 |
1140 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT | 1140 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT |
1141 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); | 1141 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); |
1142 os << "\n - tag: " << Brief(tag()); | 1142 os << "\n - tag: " << Brief(tag()); |
1143 os << "\n - serial_number: " << Brief(serial_number()); | 1143 os << "\n - serial_number: " << Brief(serial_number()); |
1144 os << "\n - property_list: " << Brief(property_list()); | 1144 os << "\n - property_list: " << Brief(property_list()); |
1145 os << "\n - property_accessors: " << Brief(property_accessors()); | 1145 os << "\n - property_accessors: " << Brief(property_accessors()); |
1146 os << "\n - constructor: " << Brief(constructor()); | 1146 os << "\n - constructor: " << Brief(constructor()); |
1147 os << "\n - internal_field_count: " << Brief(internal_field_count()); | 1147 os << "\n - internal_field_count: " << internal_field_count(); |
| 1148 os << "\n - immutable_proto: " << (immutable_proto() ? "true" : "false"); |
1148 os << "\n"; | 1149 os << "\n"; |
1149 } | 1150 } |
1150 | 1151 |
1151 | 1152 |
1152 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT | 1153 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT |
1153 HeapObject::PrintHeader(os, "AllocationSite"); | 1154 HeapObject::PrintHeader(os, "AllocationSite"); |
1154 os << "\n - weak_next: " << Brief(weak_next()); | 1155 os << "\n - weak_next: " << Brief(weak_next()); |
1155 os << "\n - dependent code: " << Brief(dependent_code()); | 1156 os << "\n - dependent code: " << Brief(dependent_code()); |
1156 os << "\n - nested site: " << Brief(nested_site()); | 1157 os << "\n - nested site: " << Brief(nested_site()); |
1157 os << "\n - memento found count: " | 1158 os << "\n - memento found count: " |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1391 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1391 Object* transitions = map()->raw_transitions(); | 1392 Object* transitions = map()->raw_transitions(); |
1392 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1393 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1393 if (num_transitions == 0) return; | 1394 if (num_transitions == 0) return; |
1394 os << "\n - transitions"; | 1395 os << "\n - transitions"; |
1395 TransitionArray::PrintTransitions(os, transitions, false); | 1396 TransitionArray::PrintTransitions(os, transitions, false); |
1396 } | 1397 } |
1397 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1398 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1398 } // namespace internal | 1399 } // namespace internal |
1399 } // namespace v8 | 1400 } // namespace v8 |
OLD | NEW |