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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1264 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1265 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1265 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1266 os << "\n - weak cell: " << Brief(weak_cell()); | 1266 os << "\n - weak cell: " << Brief(weak_cell()); |
1267 os << "\n - prototype users: " << Brief(prototype_users()); | 1267 os << "\n - prototype users: " << Brief(prototype_users()); |
1268 os << "\n - registry slot: " << registry_slot(); | 1268 os << "\n - registry slot: " << registry_slot(); |
1269 os << "\n - validity cell: " << Brief(validity_cell()); | 1269 os << "\n - validity cell: " << Brief(validity_cell()); |
1270 os << "\n - object create map: " << Brief(object_create_map()); | 1270 os << "\n - object create map: " << Brief(object_create_map()); |
1271 os << "\n"; | 1271 os << "\n"; |
1272 } | 1272 } |
1273 | 1273 |
1274 void Tuple2::Tuple2Print(std::ostream& os) { // NOLINT | |
1275 HeapObject::PrintHeader(os, "Tuple2"); | |
1276 os << "\n - value1: " << Brief(value1()); | |
1277 os << "\n - value2: " << Brief(value2()); | |
1278 os << "\n"; | |
1279 } | |
1280 | |
1281 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT | 1274 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT |
1282 HeapObject::PrintHeader(os, "Tuple3"); | 1275 HeapObject::PrintHeader(os, "Tuple3"); |
1283 os << "\n - value1: " << Brief(value1()); | 1276 os << "\n - value1: " << Brief(value1()); |
1284 os << "\n - value2: " << Brief(value2()); | 1277 os << "\n - value2: " << Brief(value2()); |
1285 os << "\n - value3: " << Brief(value3()); | 1278 os << "\n - value3: " << Brief(value3()); |
1286 os << "\n"; | 1279 os << "\n"; |
1287 } | 1280 } |
1288 | 1281 |
1289 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT | 1282 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT |
1290 HeapObject::PrintHeader(os, "ContextExtension"); | 1283 HeapObject::PrintHeader(os, "ContextExtension"); |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1650 printf("Not a transition array\n"); | 1643 printf("Not a transition array\n"); |
1651 } else { | 1644 } else { |
1652 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1645 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1653 } | 1646 } |
1654 } | 1647 } |
1655 | 1648 |
1656 extern void _v8_internal_Print_StackTrace() { | 1649 extern void _v8_internal_Print_StackTrace() { |
1657 i::Isolate* isolate = i::Isolate::Current(); | 1650 i::Isolate* isolate = i::Isolate::Current(); |
1658 isolate->PrintStack(stdout); | 1651 isolate->PrintStack(stdout); |
1659 } | 1652 } |
OLD | NEW |