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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 os << "\n"; | 1506 os << "\n"; |
1507 } | 1507 } |
1508 | 1508 |
1509 void StackTraceInfo::StackTraceInfoPrint(std::ostream& os) { // NOLINT | 1509 void StackTraceInfo::StackTraceInfoPrint(std::ostream& os) { // NOLINT |
1510 HeapObject::PrintHeader(os, "StackTraceInfo"); | 1510 HeapObject::PrintHeader(os, "StackTraceInfo"); |
1511 os << "\n - frames: " << Brief(frames()); | 1511 os << "\n - frames: " << Brief(frames()); |
1512 os << "\n - options: " << options(); | 1512 os << "\n - options: " << options(); |
1513 os << "\n"; | 1513 os << "\n"; |
1514 } | 1514 } |
1515 | 1515 |
| 1516 void SourcePositionTableWithFrameCache::SourcePositionTableWithFrameCachePrint( |
| 1517 std::ostream& os) { // NOLINT |
| 1518 HeapObject::PrintHeader(os, "SourcePositionTableWithFrameCache"); |
| 1519 os << "\n - source_position_table: " << Brief(source_position_table()); |
| 1520 os << "\n - stack_frame_cache: " << Brief(stack_frame_cache()); |
| 1521 os << "\n"; |
| 1522 } |
| 1523 |
1516 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT | 1524 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT |
1517 for (int i = 0; i < 32; i++) { | 1525 for (int i = 0; i < 32; i++) { |
1518 if ((i & 7) == 0) os << " "; | 1526 if ((i & 7) == 0) os << " "; |
1519 os << (((value & 1) == 0) ? "_" : "x"); | 1527 os << (((value & 1) == 0) ? "_" : "x"); |
1520 value >>= 1; | 1528 value >>= 1; |
1521 } | 1529 } |
1522 } | 1530 } |
1523 | 1531 |
1524 | 1532 |
1525 void LayoutDescriptor::Print() { | 1533 void LayoutDescriptor::Print() { |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1770 printf("Not a transition array\n"); | 1778 printf("Not a transition array\n"); |
1771 } else { | 1779 } else { |
1772 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1780 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1773 } | 1781 } |
1774 } | 1782 } |
1775 | 1783 |
1776 extern void _v8_internal_Print_StackTrace() { | 1784 extern void _v8_internal_Print_StackTrace() { |
1777 i::Isolate* isolate = i::Isolate::Current(); | 1785 i::Isolate* isolate = i::Isolate::Current(); |
1778 isolate->PrintStack(stdout); | 1786 isolate->PrintStack(stdout); |
1779 } | 1787 } |
OLD | NEW |