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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 HeapObject::PrintHeader(os, "PromiseContainer"); | 1151 HeapObject::PrintHeader(os, "PromiseContainer"); |
1152 os << "\n - thenable: " << Brief(thenable()); | 1152 os << "\n - thenable: " << Brief(thenable()); |
1153 os << "\n - then: " << Brief(then()); | 1153 os << "\n - then: " << Brief(then()); |
1154 os << "\n - resolve: " << Brief(resolve()); | 1154 os << "\n - resolve: " << Brief(resolve()); |
1155 os << "\n - reject: " << Brief(reject()); | 1155 os << "\n - reject: " << Brief(reject()); |
1156 os << "\n - before debug event: " << Brief(before_debug_event()); | 1156 os << "\n - before debug event: " << Brief(before_debug_event()); |
1157 os << "\n - after debug event: " << Brief(after_debug_event()); | 1157 os << "\n - after debug event: " << Brief(after_debug_event()); |
1158 os << "\n"; | 1158 os << "\n"; |
1159 } | 1159 } |
1160 | 1160 |
| 1161 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( |
| 1162 std::ostream& os) { // NOLINT |
| 1163 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); |
| 1164 os << "\n - value: " << Brief(value()); |
| 1165 os << "\n - tasks: " << Brief(tasks()); |
| 1166 os << "\n - deferred: " << Brief(deferred()); |
| 1167 os << "\n - before debug event: " << Brief(before_debug_event()); |
| 1168 os << "\n - after debug event: " << Brief(after_debug_event()); |
| 1169 os << "\n - reaction context: " << Brief(context()); |
| 1170 os << "\n"; |
| 1171 } |
| 1172 |
1161 void Module::ModulePrint(std::ostream& os) { // NOLINT | 1173 void Module::ModulePrint(std::ostream& os) { // NOLINT |
1162 HeapObject::PrintHeader(os, "Module"); | 1174 HeapObject::PrintHeader(os, "Module"); |
1163 os << "\n - code: " << Brief(code()); | 1175 os << "\n - code: " << Brief(code()); |
1164 os << "\n - exports: " << Brief(exports()); | 1176 os << "\n - exports: " << Brief(exports()); |
1165 os << "\n - requested_modules: " << Brief(requested_modules()); | 1177 os << "\n - requested_modules: " << Brief(requested_modules()); |
1166 os << "\n - evaluated: " << evaluated(); | 1178 os << "\n - evaluated: " << evaluated(); |
1167 os << "\n - embedder_data: " << Brief(embedder_data()); | 1179 os << "\n - embedder_data: " << Brief(embedder_data()); |
1168 os << "\n"; | 1180 os << "\n"; |
1169 } | 1181 } |
1170 | 1182 |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1539 printf("Not a transition array\n"); | 1551 printf("Not a transition array\n"); |
1540 } else { | 1552 } else { |
1541 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1553 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1542 } | 1554 } |
1543 } | 1555 } |
1544 | 1556 |
1545 extern void _v8_internal_Print_StackTrace() { | 1557 extern void _v8_internal_Print_StackTrace() { |
1546 i::Isolate* isolate = i::Isolate::Current(); | 1558 i::Isolate* isolate = i::Isolate::Current(); |
1547 isolate->PrintStack(stdout); | 1559 isolate->PrintStack(stdout); |
1548 } | 1560 } |
OLD | NEW |