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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 } | 1228 } |
1229 | 1229 |
1230 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( | 1230 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( |
1231 std::ostream& os) { // NOLINT | 1231 std::ostream& os) { // NOLINT |
1232 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); | 1232 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); |
1233 os << "\n - thenable: " << Brief(thenable()); | 1233 os << "\n - thenable: " << Brief(thenable()); |
1234 os << "\n - then: " << Brief(then()); | 1234 os << "\n - then: " << Brief(then()); |
1235 os << "\n - resolve: " << Brief(resolve()); | 1235 os << "\n - resolve: " << Brief(resolve()); |
1236 os << "\n - reject: " << Brief(reject()); | 1236 os << "\n - reject: " << Brief(reject()); |
1237 os << "\n - debug id: " << debug_id(); | 1237 os << "\n - debug id: " << debug_id(); |
1238 os << "\n - debug name: " << debug_name(); | |
1239 os << "\n - context: " << Brief(context()); | 1238 os << "\n - context: " << Brief(context()); |
1240 os << "\n"; | 1239 os << "\n"; |
1241 } | 1240 } |
1242 | 1241 |
1243 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( | 1242 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( |
1244 std::ostream& os) { // NOLINT | 1243 std::ostream& os) { // NOLINT |
1245 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); | 1244 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); |
1246 os << "\n - value: " << Brief(value()); | 1245 os << "\n - value: " << Brief(value()); |
1247 os << "\n - tasks: " << Brief(tasks()); | 1246 os << "\n - tasks: " << Brief(tasks()); |
1248 os << "\n - deferred_promise: " << Brief(deferred_promise()); | 1247 os << "\n - deferred_promise: " << Brief(deferred_promise()); |
1249 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); | 1248 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); |
1250 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); | 1249 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); |
1251 os << "\n - debug id: " << debug_id(); | 1250 os << "\n - debug id: " << debug_id(); |
1252 os << "\n - debug name: " << debug_name(); | |
1253 os << "\n - reaction context: " << Brief(context()); | 1251 os << "\n - reaction context: " << Brief(context()); |
1254 os << "\n"; | 1252 os << "\n"; |
1255 } | 1253 } |
1256 | 1254 |
1257 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT | 1255 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT |
1258 HeapObject::PrintHeader(os, "ModuleInfoEntry"); | 1256 HeapObject::PrintHeader(os, "ModuleInfoEntry"); |
1259 os << "\n - export_name: " << Brief(export_name()); | 1257 os << "\n - export_name: " << Brief(export_name()); |
1260 os << "\n - local_name: " << Brief(local_name()); | 1258 os << "\n - local_name: " << Brief(local_name()); |
1261 os << "\n - import_name: " << Brief(import_name()); | 1259 os << "\n - import_name: " << Brief(import_name()); |
1262 os << "\n - module_request: " << module_request(); | 1260 os << "\n - module_request: " << module_request(); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 printf("Not a transition array\n"); | 1715 printf("Not a transition array\n"); |
1718 } else { | 1716 } else { |
1719 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1717 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1720 } | 1718 } |
1721 } | 1719 } |
1722 | 1720 |
1723 extern void _v8_internal_Print_StackTrace() { | 1721 extern void _v8_internal_Print_StackTrace() { |
1724 i::Isolate* isolate = i::Isolate::Current(); | 1722 i::Isolate* isolate = i::Isolate::Current(); |
1725 isolate->PrintStack(stdout); | 1723 isolate->PrintStack(stdout); |
1726 } | 1724 } |
OLD | NEW |