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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 os << "\n - after debug event: " << Brief(after_debug_event()); | 1160 os << "\n - after debug event: " << Brief(after_debug_event()); |
1161 os << "\n"; | 1161 os << "\n"; |
1162 } | 1162 } |
1163 | 1163 |
1164 void Module::ModulePrint(std::ostream& os) { // NOLINT | 1164 void Module::ModulePrint(std::ostream& os) { // NOLINT |
1165 HeapObject::PrintHeader(os, "Module"); | 1165 HeapObject::PrintHeader(os, "Module"); |
1166 os << "\n - code: " << Brief(code()); | 1166 os << "\n - code: " << Brief(code()); |
1167 os << "\n - exports: " << Brief(exports()); | 1167 os << "\n - exports: " << Brief(exports()); |
1168 os << "\n - requested_modules: " << Brief(requested_modules()); | 1168 os << "\n - requested_modules: " << Brief(requested_modules()); |
1169 os << "\n - evaluated: " << evaluated(); | 1169 os << "\n - evaluated: " << evaluated(); |
1170 os << "\n - embedder_data: " << Brief(embedder_data()); | |
1171 os << "\n"; | 1170 os << "\n"; |
1172 } | 1171 } |
1173 | 1172 |
1174 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT | 1173 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT |
1175 HeapObject::PrintHeader(os, "JSModuleNamespace"); | 1174 HeapObject::PrintHeader(os, "JSModuleNamespace"); |
1176 os << "\n - module: " << Brief(module()); | 1175 os << "\n - module: " << Brief(module()); |
1177 os << "\n"; | 1176 os << "\n"; |
1178 } | 1177 } |
1179 | 1178 |
1180 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1179 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 printf("Not a transition array\n"); | 1547 printf("Not a transition array\n"); |
1549 } else { | 1548 } else { |
1550 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1549 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1551 } | 1550 } |
1552 } | 1551 } |
1553 | 1552 |
1554 extern void _v8_internal_Print_StackTrace() { | 1553 extern void _v8_internal_Print_StackTrace() { |
1555 i::Isolate* isolate = i::Isolate::Current(); | 1554 i::Isolate* isolate = i::Isolate::Current(); |
1556 isolate->PrintStack(stdout); | 1555 isolate->PrintStack(stdout); |
1557 } | 1556 } |
OLD | NEW |