| 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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 void Module::ModulePrint(std::ostream& os) { // NOLINT | 1282 void Module::ModulePrint(std::ostream& os) { // NOLINT |
| 1283 HeapObject::PrintHeader(os, "Module"); | 1283 HeapObject::PrintHeader(os, "Module"); |
| 1284 os << "\n - code: " << Brief(code()); | 1284 os << "\n - code: " << Brief(code()); |
| 1285 os << "\n - exports: " << Brief(exports()); | 1285 os << "\n - exports: " << Brief(exports()); |
| 1286 os << "\n - requested_modules: " << Brief(requested_modules()); | 1286 os << "\n - requested_modules: " << Brief(requested_modules()); |
| 1287 os << "\n - evaluated: " << evaluated(); | 1287 os << "\n - evaluated: " << evaluated(); |
| 1288 os << "\n"; | 1288 os << "\n"; |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT | 1291 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT |
| 1292 HeapObject::PrintHeader(os, "JSModuleNamespace"); | 1292 JSObjectPrintHeader(os, this, "JSModuleNamespace"); |
| 1293 os << "\n - module: " << Brief(module()); | 1293 os << "\n - module: " << Brief(module()); |
| 1294 os << "\n"; | 1294 JSObjectPrintBody(os, this); |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1297 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
| 1298 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1298 HeapObject::PrintHeader(os, "PrototypeInfo"); |
| 1299 os << "\n - weak cell: " << Brief(weak_cell()); | 1299 os << "\n - weak cell: " << Brief(weak_cell()); |
| 1300 os << "\n - prototype users: " << Brief(prototype_users()); | 1300 os << "\n - prototype users: " << Brief(prototype_users()); |
| 1301 os << "\n - registry slot: " << registry_slot(); | 1301 os << "\n - registry slot: " << registry_slot(); |
| 1302 os << "\n - validity cell: " << Brief(validity_cell()); | 1302 os << "\n - validity cell: " << Brief(validity_cell()); |
| 1303 os << "\n - object create map: " << Brief(object_create_map()); | 1303 os << "\n - object create map: " << Brief(object_create_map()); |
| 1304 os << "\n"; | 1304 os << "\n"; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 printf("Not a transition array\n"); | 1709 printf("Not a transition array\n"); |
| 1710 } else { | 1710 } else { |
| 1711 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1711 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
| 1712 } | 1712 } |
| 1713 } | 1713 } |
| 1714 | 1714 |
| 1715 extern void _v8_internal_Print_StackTrace() { | 1715 extern void _v8_internal_Print_StackTrace() { |
| 1716 i::Isolate* isolate = i::Isolate::Current(); | 1716 i::Isolate* isolate = i::Isolate::Current(); |
| 1717 isolate->PrintStack(stdout); | 1717 isolate->PrintStack(stdout); |
| 1718 } | 1718 } |
| OLD | NEW |