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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1265 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1266 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1266 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1267 os << "\n - weak cell: " << Brief(weak_cell()); | 1267 os << "\n - weak cell: " << Brief(weak_cell()); |
1268 os << "\n - prototype users: " << Brief(prototype_users()); | 1268 os << "\n - prototype users: " << Brief(prototype_users()); |
1269 os << "\n - registry slot: " << registry_slot(); | 1269 os << "\n - registry slot: " << registry_slot(); |
1270 os << "\n - validity cell: " << Brief(validity_cell()); | 1270 os << "\n - validity cell: " << Brief(validity_cell()); |
1271 os << "\n - object create map: " << Brief(object_create_map()); | 1271 os << "\n - object create map: " << Brief(object_create_map()); |
1272 os << "\n"; | 1272 os << "\n"; |
1273 } | 1273 } |
1274 | 1274 |
| 1275 void Tuple2::Tuple2Print(std::ostream& os) { // NOLINT |
| 1276 HeapObject::PrintHeader(os, "Tuple2"); |
| 1277 os << "\n - value1: " << Brief(value1()); |
| 1278 os << "\n - value2: " << Brief(value2()); |
| 1279 os << "\n"; |
| 1280 } |
| 1281 |
1275 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT | 1282 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT |
1276 HeapObject::PrintHeader(os, "Tuple3"); | 1283 HeapObject::PrintHeader(os, "Tuple3"); |
1277 os << "\n - value1: " << Brief(value1()); | 1284 os << "\n - value1: " << Brief(value1()); |
1278 os << "\n - value2: " << Brief(value2()); | 1285 os << "\n - value2: " << Brief(value2()); |
1279 os << "\n - value3: " << Brief(value3()); | 1286 os << "\n - value3: " << Brief(value3()); |
1280 os << "\n"; | 1287 os << "\n"; |
1281 } | 1288 } |
1282 | 1289 |
1283 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT | 1290 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT |
1284 HeapObject::PrintHeader(os, "ContextExtension"); | 1291 HeapObject::PrintHeader(os, "ContextExtension"); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 printf("Not a transition array\n"); | 1668 printf("Not a transition array\n"); |
1662 } else { | 1669 } else { |
1663 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1670 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1664 } | 1671 } |
1665 } | 1672 } |
1666 | 1673 |
1667 extern void _v8_internal_Print_StackTrace() { | 1674 extern void _v8_internal_Print_StackTrace() { |
1668 i::Isolate* isolate = i::Isolate::Current(); | 1675 i::Isolate* isolate = i::Isolate::Current(); |
1669 isolate->PrintStack(stdout); | 1676 isolate->PrintStack(stdout); |
1670 } | 1677 } |
OLD | NEW |