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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 os << "\n - after debug event: " << Brief(after_debug_event()); | 1165 os << "\n - after debug event: " << Brief(after_debug_event()); |
1166 os << "\n"; | 1166 os << "\n"; |
1167 } | 1167 } |
1168 | 1168 |
1169 void Module::ModulePrint(std::ostream& os) { // NOLINT | 1169 void Module::ModulePrint(std::ostream& os) { // NOLINT |
1170 HeapObject::PrintHeader(os, "Module"); | 1170 HeapObject::PrintHeader(os, "Module"); |
1171 os << "\n - code: " << Brief(code()); | 1171 os << "\n - code: " << Brief(code()); |
1172 os << "\n - exports: " << Brief(exports()); | 1172 os << "\n - exports: " << Brief(exports()); |
1173 os << "\n - requested_modules: " << Brief(requested_modules()); | 1173 os << "\n - requested_modules: " << Brief(requested_modules()); |
1174 os << "\n - evaluated: " << evaluated(); | 1174 os << "\n - evaluated: " << evaluated(); |
| 1175 os << "\n - embedder_data: " << Brief(embedder_data()); |
1175 os << "\n"; | 1176 os << "\n"; |
1176 } | 1177 } |
1177 | 1178 |
1178 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1179 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1179 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1180 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1180 os << "\n - prototype users: " << Brief(prototype_users()); | 1181 os << "\n - prototype users: " << Brief(prototype_users()); |
1181 os << "\n - registry slot: " << registry_slot(); | 1182 os << "\n - registry slot: " << registry_slot(); |
1182 os << "\n - validity cell: " << Brief(validity_cell()); | 1183 os << "\n - validity cell: " << Brief(validity_cell()); |
1183 os << "\n"; | 1184 os << "\n"; |
1184 } | 1185 } |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 printf("Not a transition array\n"); | 1547 printf("Not a transition array\n"); |
1547 } else { | 1548 } else { |
1548 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1549 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1549 } | 1550 } |
1550 } | 1551 } |
1551 | 1552 |
1552 extern void _v8_internal_Print_StackTrace() { | 1553 extern void _v8_internal_Print_StackTrace() { |
1553 i::Isolate* isolate = i::Isolate::Current(); | 1554 i::Isolate* isolate = i::Isolate::Current(); |
1554 isolate->PrintStack(stdout); | 1555 isolate->PrintStack(stdout); |
1555 } | 1556 } |
OLD | NEW |