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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 os << "\n - eval from shared: " << Brief(eval_from_shared()); | 1271 os << "\n - eval from shared: " << Brief(eval_from_shared()); |
1272 os << "\n - eval from position: " << eval_from_position(); | 1272 os << "\n - eval from position: " << eval_from_position(); |
1273 os << "\n - shared function infos: " << Brief(shared_function_infos()); | 1273 os << "\n - shared function infos: " << Brief(shared_function_infos()); |
1274 os << "\n"; | 1274 os << "\n"; |
1275 } | 1275 } |
1276 | 1276 |
1277 | 1277 |
1278 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT | 1278 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT |
1279 HeapObject::PrintHeader(os, "DebugInfo"); | 1279 HeapObject::PrintHeader(os, "DebugInfo"); |
1280 os << "\n - shared: " << Brief(shared()); | 1280 os << "\n - shared: " << Brief(shared()); |
1281 os << "\n - code: " << Brief(abstract_code()); | 1281 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array()); |
1282 os << "\n - break_points: "; | 1282 os << "\n - break_points: "; |
1283 break_points()->Print(os); | 1283 break_points()->Print(os); |
1284 } | 1284 } |
1285 | 1285 |
1286 | 1286 |
1287 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT | 1287 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT |
1288 HeapObject::PrintHeader(os, "BreakPointInfo"); | 1288 HeapObject::PrintHeader(os, "BreakPointInfo"); |
1289 os << "\n - source_position: " << source_position(); | 1289 os << "\n - source_position: " << source_position(); |
1290 os << "\n - break_point_objects: " << Brief(break_point_objects()); | 1290 os << "\n - break_point_objects: " << Brief(break_point_objects()); |
1291 os << "\n"; | 1291 os << "\n"; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 printf("Not a transition array\n"); | 1501 printf("Not a transition array\n"); |
1502 } else { | 1502 } else { |
1503 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1503 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1504 } | 1504 } |
1505 } | 1505 } |
1506 | 1506 |
1507 extern void _v8_internal_Print_StackTrace() { | 1507 extern void _v8_internal_Print_StackTrace() { |
1508 i::Isolate* isolate = i::Isolate::Current(); | 1508 i::Isolate* isolate = i::Isolate::Current(); |
1509 isolate->PrintStack(stdout); | 1509 isolate->PrintStack(stdout); |
1510 } | 1510 } |
OLD | NEW |