| 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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 - code: " << Brief(abstract_code()); |
| 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 - code_offset: " << code_offset(); | |
| 1290 os << "\n - source_position: " << source_position(); | 1289 os << "\n - source_position: " << source_position(); |
| 1291 os << "\n - statement_position: " << statement_position(); | |
| 1292 os << "\n - break_point_objects: " << Brief(break_point_objects()); | 1290 os << "\n - break_point_objects: " << Brief(break_point_objects()); |
| 1293 os << "\n"; | 1291 os << "\n"; |
| 1294 } | 1292 } |
| 1295 | 1293 |
| 1296 | 1294 |
| 1297 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT | 1295 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT |
| 1298 for (int i = 0; i < 32; i++) { | 1296 for (int i = 0; i < 32; i++) { |
| 1299 if ((i & 7) == 0) os << " "; | 1297 if ((i & 7) == 0) os << " "; |
| 1300 os << (((value & 1) == 0) ? "_" : "x"); | 1298 os << (((value & 1) == 0) ? "_" : "x"); |
| 1301 value >>= 1; | 1299 value >>= 1; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 printf("Not a transition array\n"); | 1501 printf("Not a transition array\n"); |
| 1504 } else { | 1502 } else { |
| 1505 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1503 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
| 1506 } | 1504 } |
| 1507 } | 1505 } |
| 1508 | 1506 |
| 1509 extern void _v8_internal_Print_StackTrace() { | 1507 extern void _v8_internal_Print_StackTrace() { |
| 1510 i::Isolate* isolate = i::Isolate::Current(); | 1508 i::Isolate* isolate = i::Isolate::Current(); |
| 1511 isolate->PrintStack(stdout); | 1509 isolate->PrintStack(stdout); |
| 1512 } | 1510 } |
| OLD | NEW |