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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 os << "\n"; | 1148 os << "\n"; |
1149 } | 1149 } |
1150 | 1150 |
1151 | 1151 |
1152 void Box::BoxPrint(std::ostream& os) { // NOLINT | 1152 void Box::BoxPrint(std::ostream& os) { // NOLINT |
1153 HeapObject::PrintHeader(os, "Box"); | 1153 HeapObject::PrintHeader(os, "Box"); |
1154 os << "\n - value: " << Brief(value()); | 1154 os << "\n - value: " << Brief(value()); |
1155 os << "\n"; | 1155 os << "\n"; |
1156 } | 1156 } |
1157 | 1157 |
| 1158 void PromiseContainer::PromiseContainerPrint(std::ostream& os) { // NOLINT |
| 1159 HeapObject::PrintHeader(os, "PromiseContainer"); |
| 1160 os << "\n - thenable: " << Brief(thenable()); |
| 1161 os << "\n - then: " << Brief(then()); |
| 1162 os << "\n - resolve: " << Brief(resolve()); |
| 1163 os << "\n - reject: " << Brief(reject()); |
| 1164 os << "\n - before debug event: " << Brief(before_debug_event()); |
| 1165 os << "\n - after debug event: " << Brief(after_debug_event()); |
| 1166 os << "\n"; |
| 1167 } |
| 1168 |
1158 void Module::ModulePrint(std::ostream& os) { // NOLINT | 1169 void Module::ModulePrint(std::ostream& os) { // NOLINT |
1159 HeapObject::PrintHeader(os, "Module"); | 1170 HeapObject::PrintHeader(os, "Module"); |
1160 os << "\n - code: " << Brief(code()); | 1171 os << "\n - code: " << Brief(code()); |
1161 os << "\n - exports: " << Brief(exports()); | 1172 os << "\n - exports: " << Brief(exports()); |
1162 os << "\n - requested_modules: " << Brief(requested_modules()); | 1173 os << "\n - requested_modules: " << Brief(requested_modules()); |
1163 os << "\n"; | 1174 os << "\n"; |
1164 } | 1175 } |
1165 | 1176 |
1166 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1177 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1167 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1178 HeapObject::PrintHeader(os, "PrototypeInfo"); |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 printf("Not a transition array\n"); | 1545 printf("Not a transition array\n"); |
1535 } else { | 1546 } else { |
1536 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1547 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1537 } | 1548 } |
1538 } | 1549 } |
1539 | 1550 |
1540 extern void _v8_internal_Print_StackTrace() { | 1551 extern void _v8_internal_Print_StackTrace() { |
1541 i::Isolate* isolate = i::Isolate::Current(); | 1552 i::Isolate* isolate = i::Isolate::Current(); |
1542 isolate->PrintStack(stdout); | 1553 isolate->PrintStack(stdout); |
1543 } | 1554 } |
OLD | NEW |