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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 os << "\n - context data: " << Brief(context_data()); | 1267 os << "\n - context data: " << Brief(context_data()); |
1268 os << "\n - wrapper: " << Brief(wrapper()); | 1268 os << "\n - wrapper: " << Brief(wrapper()); |
1269 os << "\n - compilation type: " << compilation_type(); | 1269 os << "\n - compilation type: " << compilation_type(); |
1270 os << "\n - line ends: " << Brief(line_ends()); | 1270 os << "\n - line ends: " << Brief(line_ends()); |
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 void StackTraceFrame::StackTraceFramePrint(std::ostream& os) { // NOLINT |
| 1278 HeapObject::PrintHeader(os, "StackTraceFrame"); |
| 1279 os << "\n - flags: " << flags(); |
| 1280 os << "\n - abstract_code: " << Brief(abstract_code()); |
| 1281 os << "\n - offset: " << offset(); |
| 1282 if (IsWasmFrame()) { |
| 1283 os << "\n - wasm_object: " << Brief(wasm_object()); |
| 1284 os << "\n - wasm_function_index data: " << wasm_function_index(); |
| 1285 } else { |
| 1286 DCHECK(IsJavaScriptFrame()); |
| 1287 os << "\n - receiver: " << Brief(receiver()); |
| 1288 os << "\n - function: " << Brief(function()); |
| 1289 } |
| 1290 os << "\n"; |
| 1291 } |
1277 | 1292 |
1278 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT | 1293 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT |
1279 HeapObject::PrintHeader(os, "DebugInfo"); | 1294 HeapObject::PrintHeader(os, "DebugInfo"); |
1280 os << "\n - shared: " << Brief(shared()); | 1295 os << "\n - shared: " << Brief(shared()); |
1281 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array()); | 1296 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array()); |
1282 os << "\n - break_points: "; | 1297 os << "\n - break_points: "; |
1283 break_points()->Print(os); | 1298 break_points()->Print(os); |
1284 } | 1299 } |
1285 | 1300 |
1286 | 1301 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 printf("Not a transition array\n"); | 1516 printf("Not a transition array\n"); |
1502 } else { | 1517 } else { |
1503 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1518 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1504 } | 1519 } |
1505 } | 1520 } |
1506 | 1521 |
1507 extern void _v8_internal_Print_StackTrace() { | 1522 extern void _v8_internal_Print_StackTrace() { |
1508 i::Isolate* isolate = i::Isolate::Current(); | 1523 i::Isolate* isolate = i::Isolate::Current(); |
1509 isolate->PrintStack(stdout); | 1524 isolate->PrintStack(stdout); |
1510 } | 1525 } |
OLD | NEW |