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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 | 1164 |
1165 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( | 1165 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( |
1166 std::ostream& os) { // NOLINT | 1166 std::ostream& os) { // NOLINT |
1167 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); | 1167 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); |
1168 os << "\n - thenable: " << Brief(thenable()); | 1168 os << "\n - thenable: " << Brief(thenable()); |
1169 os << "\n - then: " << Brief(then()); | 1169 os << "\n - then: " << Brief(then()); |
1170 os << "\n - resolve: " << Brief(resolve()); | 1170 os << "\n - resolve: " << Brief(resolve()); |
1171 os << "\n - reject: " << Brief(reject()); | 1171 os << "\n - reject: " << Brief(reject()); |
1172 os << "\n - debug id: " << Brief(debug_id()); | 1172 os << "\n - debug id: " << Brief(debug_id()); |
1173 os << "\n - debug name: " << Brief(debug_name()); | 1173 os << "\n - debug name: " << Brief(debug_name()); |
| 1174 os << "\n - context: " << Brief(context()); |
1174 os << "\n"; | 1175 os << "\n"; |
1175 } | 1176 } |
1176 | 1177 |
1177 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( | 1178 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( |
1178 std::ostream& os) { // NOLINT | 1179 std::ostream& os) { // NOLINT |
1179 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); | 1180 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); |
1180 os << "\n - value: " << Brief(value()); | 1181 os << "\n - value: " << Brief(value()); |
1181 os << "\n - tasks: " << Brief(tasks()); | 1182 os << "\n - tasks: " << Brief(tasks()); |
1182 os << "\n - deferred: " << Brief(deferred()); | 1183 os << "\n - deferred: " << Brief(deferred()); |
1183 os << "\n - debug id: " << Brief(debug_id()); | 1184 os << "\n - debug id: " << Brief(debug_id()); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 printf("Not a transition array\n"); | 1596 printf("Not a transition array\n"); |
1596 } else { | 1597 } else { |
1597 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1598 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1598 } | 1599 } |
1599 } | 1600 } |
1600 | 1601 |
1601 extern void _v8_internal_Print_StackTrace() { | 1602 extern void _v8_internal_Print_StackTrace() { |
1602 i::Isolate* isolate = i::Isolate::Current(); | 1603 i::Isolate* isolate = i::Isolate::Current(); |
1603 isolate->PrintStack(stdout); | 1604 isolate->PrintStack(stdout); |
1604 } | 1605 } |
OLD | NEW |