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 <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 } | 1177 } |
1178 | 1178 |
1179 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1179 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1180 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1180 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1181 os << "\n - prototype users: " << Brief(prototype_users()); | 1181 os << "\n - prototype users: " << Brief(prototype_users()); |
1182 os << "\n - registry slot: " << registry_slot(); | 1182 os << "\n - registry slot: " << registry_slot(); |
1183 os << "\n - validity cell: " << Brief(validity_cell()); | 1183 os << "\n - validity cell: " << Brief(validity_cell()); |
1184 os << "\n"; | 1184 os << "\n"; |
1185 } | 1185 } |
1186 | 1186 |
| 1187 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT |
| 1188 HeapObject::PrintHeader(os, "Tuple3"); |
| 1189 os << "\n - value1: " << Brief(value1()); |
| 1190 os << "\n - value2: " << Brief(value2()); |
| 1191 os << "\n - value3: " << Brief(value3()); |
| 1192 os << "\n"; |
| 1193 } |
| 1194 |
1187 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT | 1195 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT |
1188 HeapObject::PrintHeader(os, "ContextExtension"); | 1196 HeapObject::PrintHeader(os, "ContextExtension"); |
1189 os << "\n - scope_info: " << Brief(scope_info()); | 1197 os << "\n - scope_info: " << Brief(scope_info()); |
1190 os << "\n - extension: " << Brief(extension()); | 1198 os << "\n - extension: " << Brief(extension()); |
1191 os << "\n"; | 1199 os << "\n"; |
1192 } | 1200 } |
1193 | 1201 |
1194 | 1202 |
1195 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT | 1203 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT |
1196 HeapObject::PrintHeader(os, "AccessorPair"); | 1204 HeapObject::PrintHeader(os, "AccessorPair"); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 printf("Not a transition array\n"); | 1555 printf("Not a transition array\n"); |
1548 } else { | 1556 } else { |
1549 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1557 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1550 } | 1558 } |
1551 } | 1559 } |
1552 | 1560 |
1553 extern void _v8_internal_Print_StackTrace() { | 1561 extern void _v8_internal_Print_StackTrace() { |
1554 i::Isolate* isolate = i::Isolate::Current(); | 1562 i::Isolate* isolate = i::Isolate::Current(); |
1555 isolate->PrintStack(stdout); | 1563 isolate->PrintStack(stdout); |
1556 } | 1564 } |
OLD | NEW |