| 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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 os << "\n - script_id: " << script_id(); | 1499 os << "\n - script_id: " << script_id(); |
| 1500 os << "\n - script_name: " << Brief(script_name()); | 1500 os << "\n - script_name: " << Brief(script_name()); |
| 1501 os << "\n - script_name_or_source_url: " | 1501 os << "\n - script_name_or_source_url: " |
| 1502 << Brief(script_name_or_source_url()); | 1502 << Brief(script_name_or_source_url()); |
| 1503 os << "\n - function_name: " << Brief(function_name()); | 1503 os << "\n - function_name: " << Brief(function_name()); |
| 1504 os << "\n - is_eval: " << (is_eval() ? "true" : "false"); | 1504 os << "\n - is_eval: " << (is_eval() ? "true" : "false"); |
| 1505 os << "\n - is_constructor: " << (is_constructor() ? "true" : "false"); | 1505 os << "\n - is_constructor: " << (is_constructor() ? "true" : "false"); |
| 1506 os << "\n"; | 1506 os << "\n"; |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 void SourcePositionTableWithFrameCache::SourcePositionTableWithFrameCachePrint( |
| 1510 std::ostream& os) { // NOLINT |
| 1511 HeapObject::PrintHeader(os, "SourcePositionTableWithFrameCache"); |
| 1512 os << "\n - source_position_table: " << Brief(source_position_table()); |
| 1513 os << "\n - stack_frame_cache: " << Brief(stack_frame_cache()); |
| 1514 os << "\n"; |
| 1515 } |
| 1516 |
| 1509 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT | 1517 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT |
| 1510 for (int i = 0; i < 32; i++) { | 1518 for (int i = 0; i < 32; i++) { |
| 1511 if ((i & 7) == 0) os << " "; | 1519 if ((i & 7) == 0) os << " "; |
| 1512 os << (((value & 1) == 0) ? "_" : "x"); | 1520 os << (((value & 1) == 0) ? "_" : "x"); |
| 1513 value >>= 1; | 1521 value >>= 1; |
| 1514 } | 1522 } |
| 1515 } | 1523 } |
| 1516 | 1524 |
| 1517 | 1525 |
| 1518 void LayoutDescriptor::Print() { | 1526 void LayoutDescriptor::Print() { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 printf("Not a transition array\n"); | 1771 printf("Not a transition array\n"); |
| 1764 } else { | 1772 } else { |
| 1765 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1773 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
| 1766 } | 1774 } |
| 1767 } | 1775 } |
| 1768 | 1776 |
| 1769 extern void _v8_internal_Print_StackTrace() { | 1777 extern void _v8_internal_Print_StackTrace() { |
| 1770 i::Isolate* isolate = i::Isolate::Current(); | 1778 i::Isolate* isolate = i::Isolate::Current(); |
| 1771 isolate->PrintStack(stdout); | 1779 isolate->PrintStack(stdout); |
| 1772 } | 1780 } |
| OLD | NEW |