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 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 } | 1402 } |
1403 | 1403 |
1404 | 1404 |
1405 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT | 1405 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT |
1406 HeapObject::PrintHeader(os, "BreakPointInfo"); | 1406 HeapObject::PrintHeader(os, "BreakPointInfo"); |
1407 os << "\n - source_position: " << source_position(); | 1407 os << "\n - source_position: " << source_position(); |
1408 os << "\n - break_point_objects: " << Brief(break_point_objects()); | 1408 os << "\n - break_point_objects: " << Brief(break_point_objects()); |
1409 os << "\n"; | 1409 os << "\n"; |
1410 } | 1410 } |
1411 | 1411 |
| 1412 void BreakPoint::BreakPointPrint(std::ostream& os) { // NOLINT |
| 1413 HeapObject::PrintHeader(os, "BreakPoint"); |
| 1414 os << "\n - condition: " << Brief(condition()); |
| 1415 os << "\n - data: " << Brief(data()); |
| 1416 os << "\n"; |
| 1417 } |
1412 | 1418 |
1413 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT | 1419 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT |
1414 for (int i = 0; i < 32; i++) { | 1420 for (int i = 0; i < 32; i++) { |
1415 if ((i & 7) == 0) os << " "; | 1421 if ((i & 7) == 0) os << " "; |
1416 os << (((value & 1) == 0) ? "_" : "x"); | 1422 os << (((value & 1) == 0) ? "_" : "x"); |
1417 value >>= 1; | 1423 value >>= 1; |
1418 } | 1424 } |
1419 } | 1425 } |
1420 | 1426 |
1421 | 1427 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1667 printf("Not a transition array\n"); | 1673 printf("Not a transition array\n"); |
1668 } else { | 1674 } else { |
1669 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1675 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1670 } | 1676 } |
1671 } | 1677 } |
1672 | 1678 |
1673 extern void _v8_internal_Print_StackTrace() { | 1679 extern void _v8_internal_Print_StackTrace() { |
1674 i::Isolate* isolate = i::Isolate::Current(); | 1680 i::Isolate* isolate = i::Isolate::Current(); |
1675 isolate->PrintStack(stdout); | 1681 isolate->PrintStack(stdout); |
1676 } | 1682 } |
OLD | NEW |