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/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 os << "\n"; | 1217 os << "\n"; |
1218 } | 1218 } |
1219 | 1219 |
1220 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( | 1220 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( |
1221 std::ostream& os) { // NOLINT | 1221 std::ostream& os) { // NOLINT |
1222 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); | 1222 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); |
1223 os << "\n - thenable: " << Brief(thenable()); | 1223 os << "\n - thenable: " << Brief(thenable()); |
1224 os << "\n - then: " << Brief(then()); | 1224 os << "\n - then: " << Brief(then()); |
1225 os << "\n - resolve: " << Brief(resolve()); | 1225 os << "\n - resolve: " << Brief(resolve()); |
1226 os << "\n - reject: " << Brief(reject()); | 1226 os << "\n - reject: " << Brief(reject()); |
1227 os << "\n - debug id: " << Brief(debug_id()); | 1227 os << "\n - debug id: " << debug_id(); |
1228 os << "\n - debug name: " << Brief(debug_name()); | 1228 os << "\n - debug name: " << debug_name(); |
1229 os << "\n - context: " << Brief(context()); | 1229 os << "\n - context: " << Brief(context()); |
1230 os << "\n"; | 1230 os << "\n"; |
1231 } | 1231 } |
1232 | 1232 |
1233 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( | 1233 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( |
1234 std::ostream& os) { // NOLINT | 1234 std::ostream& os) { // NOLINT |
1235 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); | 1235 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); |
1236 os << "\n - promise: " << Brief(promise()); | 1236 os << "\n - promise: " << Brief(promise()); |
1237 os << "\n - value: " << Brief(value()); | 1237 os << "\n - value: " << Brief(value()); |
1238 os << "\n - tasks: " << Brief(tasks()); | 1238 os << "\n - tasks: " << Brief(tasks()); |
1239 os << "\n - deferred_promise: " << Brief(deferred_promise()); | 1239 os << "\n - deferred_promise: " << Brief(deferred_promise()); |
1240 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); | 1240 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); |
1241 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); | 1241 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); |
1242 os << "\n - debug id: " << Brief(debug_id()); | 1242 os << "\n - debug id: " << debug_id(); |
1243 os << "\n - debug name: " << Brief(debug_name()); | 1243 os << "\n - debug name: " << debug_name(); |
1244 os << "\n - reaction context: " << Brief(context()); | 1244 os << "\n - reaction context: " << Brief(context()); |
1245 os << "\n"; | 1245 os << "\n"; |
1246 } | 1246 } |
1247 | 1247 |
1248 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT | 1248 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT |
1249 HeapObject::PrintHeader(os, "ModuleInfoEntry"); | 1249 HeapObject::PrintHeader(os, "ModuleInfoEntry"); |
1250 os << "\n - export_name: " << Brief(export_name()); | 1250 os << "\n - export_name: " << Brief(export_name()); |
1251 os << "\n - local_name: " << Brief(local_name()); | 1251 os << "\n - local_name: " << Brief(local_name()); |
1252 os << "\n - import_name: " << Brief(import_name()); | 1252 os << "\n - import_name: " << Brief(import_name()); |
1253 os << "\n - module_request: " << module_request(); | 1253 os << "\n - module_request: " << module_request(); |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 printf("Not a transition array\n"); | 1685 printf("Not a transition array\n"); |
1686 } else { | 1686 } else { |
1687 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1687 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1688 } | 1688 } |
1689 } | 1689 } |
1690 | 1690 |
1691 extern void _v8_internal_Print_StackTrace() { | 1691 extern void _v8_internal_Print_StackTrace() { |
1692 i::Isolate* isolate = i::Isolate::Current(); | 1692 i::Isolate* isolate = i::Isolate::Current(); |
1693 isolate->PrintStack(stdout); | 1693 isolate->PrintStack(stdout); |
1694 } | 1694 } |
OLD | NEW |