| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 14879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14890 for (uint32_t i = 0; i < back_edges.length(); i++) { | 14890 for (uint32_t i = 0; i < back_edges.length(); i++) { |
| 14891 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " | 14891 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " |
| 14892 << std::setw(9) << std::hex << back_edges.pc_offset(i) << std::dec | 14892 << std::setw(9) << std::hex << back_edges.pc_offset(i) << std::dec |
| 14893 << " " << std::setw(10) << back_edges.loop_depth(i) << "\n"; | 14893 << " " << std::setw(10) << back_edges.loop_depth(i) << "\n"; |
| 14894 } | 14894 } |
| 14895 | 14895 |
| 14896 os << "\n"; | 14896 os << "\n"; |
| 14897 } | 14897 } |
| 14898 #ifdef OBJECT_PRINT | 14898 #ifdef OBJECT_PRINT |
| 14899 if (!type_feedback_info()->IsUndefined(GetIsolate())) { | 14899 if (!type_feedback_info()->IsUndefined(GetIsolate())) { |
| 14900 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); | 14900 TypeFeedbackInfo* info = TypeFeedbackInfo::cast(type_feedback_info()); |
| 14901 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); |
| 14902 os << "\n - ic_total_count: " << info->ic_total_count() |
| 14903 << ", ic_with_type_info_count: " << info->ic_with_type_info_count() |
| 14904 << ", ic_generic_count: " << info->ic_generic_count() << "\n"; |
| 14901 os << "\n"; | 14905 os << "\n"; |
| 14902 } | 14906 } |
| 14903 #endif | 14907 #endif |
| 14904 } | 14908 } |
| 14905 | 14909 |
| 14906 if (handler_table()->length() > 0) { | 14910 if (handler_table()->length() > 0) { |
| 14907 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; | 14911 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; |
| 14908 if (kind() == FUNCTION) { | 14912 if (kind() == FUNCTION) { |
| 14909 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); | 14913 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); |
| 14910 } else if (kind() == OPTIMIZED_FUNCTION) { | 14914 } else if (kind() == OPTIMIZED_FUNCTION) { |
| (...skipping 5758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20669 // depend on this. | 20673 // depend on this. |
| 20670 return DICTIONARY_ELEMENTS; | 20674 return DICTIONARY_ELEMENTS; |
| 20671 } | 20675 } |
| 20672 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20676 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
| 20673 return kind; | 20677 return kind; |
| 20674 } | 20678 } |
| 20675 } | 20679 } |
| 20676 | 20680 |
| 20677 } // namespace internal | 20681 } // namespace internal |
| 20678 } // namespace v8 | 20682 } // namespace v8 |
| OLD | NEW |