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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 os << "\n"; | 1138 os << "\n"; |
1139 } | 1139 } |
1140 | 1140 |
1141 | 1141 |
1142 void Box::BoxPrint(std::ostream& os) { // NOLINT | 1142 void Box::BoxPrint(std::ostream& os) { // NOLINT |
1143 HeapObject::PrintHeader(os, "Box"); | 1143 HeapObject::PrintHeader(os, "Box"); |
1144 os << "\n - value: " << Brief(value()); | 1144 os << "\n - value: " << Brief(value()); |
1145 os << "\n"; | 1145 os << "\n"; |
1146 } | 1146 } |
1147 | 1147 |
| 1148 void PromiseContainer::PromiseContainerPrint(std::ostream& os) { // NOLINT |
| 1149 HeapObject::PrintHeader(os, "PromiseContainer"); |
| 1150 os << "\n - promise: " << Brief(promise()); |
| 1151 os << "\n - thenable: " << Brief(thenable()); |
| 1152 os << "\n - then: " << Brief(then()); |
| 1153 os << "\n - resolve: " << Brief(resolve()); |
| 1154 os << "\n - reject: " << Brief(reject()); |
| 1155 os << "\n - before debug event: " << Brief(before_debug_event()); |
| 1156 os << "\n - after debug event: " << Brief(after_debug_event()); |
| 1157 os << "\n"; |
| 1158 } |
1148 | 1159 |
1149 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1160 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1150 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1161 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1151 os << "\n - prototype users: " << Brief(prototype_users()); | 1162 os << "\n - prototype users: " << Brief(prototype_users()); |
1152 os << "\n - registry slot: " << registry_slot(); | 1163 os << "\n - registry slot: " << registry_slot(); |
1153 os << "\n - validity cell: " << Brief(validity_cell()); | 1164 os << "\n - validity cell: " << Brief(validity_cell()); |
1154 os << "\n"; | 1165 os << "\n"; |
1155 } | 1166 } |
1156 | 1167 |
1157 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT | 1168 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 printf("Not a transition array\n"); | 1528 printf("Not a transition array\n"); |
1518 } else { | 1529 } else { |
1519 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1530 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1520 } | 1531 } |
1521 } | 1532 } |
1522 | 1533 |
1523 extern void _v8_internal_Print_StackTrace() { | 1534 extern void _v8_internal_Print_StackTrace() { |
1524 i::Isolate* isolate = i::Isolate::Current(); | 1535 i::Isolate* isolate = i::Isolate::Current(); |
1525 isolate->PrintStack(stdout); | 1536 isolate->PrintStack(stdout); |
1526 } | 1537 } |
OLD | NEW |