| 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 14822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14833 for (uint32_t i = 0; i < back_edges.length(); i++) { | 14833 for (uint32_t i = 0; i < back_edges.length(); i++) { |
| 14834 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " | 14834 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " |
| 14835 << std::setw(9) << std::hex << back_edges.pc_offset(i) << std::dec | 14835 << std::setw(9) << std::hex << back_edges.pc_offset(i) << std::dec |
| 14836 << " " << std::setw(10) << back_edges.loop_depth(i) << "\n"; | 14836 << " " << std::setw(10) << back_edges.loop_depth(i) << "\n"; |
| 14837 } | 14837 } |
| 14838 | 14838 |
| 14839 os << "\n"; | 14839 os << "\n"; |
| 14840 } | 14840 } |
| 14841 #ifdef OBJECT_PRINT | 14841 #ifdef OBJECT_PRINT |
| 14842 if (!type_feedback_info()->IsUndefined(GetIsolate())) { | 14842 if (!type_feedback_info()->IsUndefined(GetIsolate())) { |
| 14843 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); | 14843 TypeFeedbackInfo* info = TypeFeedbackInfo::cast(type_feedback_info()); |
| 14844 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); |
| 14845 os << "\n - ic_total_count: " << info->ic_total_count() |
| 14846 << ", ic_with_type_info_count: " << info->ic_with_type_info_count() |
| 14847 << ", ic_generic_count: " << info->ic_generic_count() << "\n"; |
| 14844 os << "\n"; | 14848 os << "\n"; |
| 14845 } | 14849 } |
| 14846 #endif | 14850 #endif |
| 14847 } | 14851 } |
| 14848 | 14852 |
| 14849 if (handler_table()->length() > 0) { | 14853 if (handler_table()->length() > 0) { |
| 14850 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; | 14854 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; |
| 14851 if (kind() == FUNCTION) { | 14855 if (kind() == FUNCTION) { |
| 14852 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); | 14856 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); |
| 14853 } else if (kind() == OPTIMIZED_FUNCTION) { | 14857 } else if (kind() == OPTIMIZED_FUNCTION) { |
| (...skipping 5597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20451 // depend on this. | 20455 // depend on this. |
| 20452 return DICTIONARY_ELEMENTS; | 20456 return DICTIONARY_ELEMENTS; |
| 20453 } | 20457 } |
| 20454 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20458 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
| 20455 return kind; | 20459 return kind; |
| 20456 } | 20460 } |
| 20457 } | 20461 } |
| 20458 | 20462 |
| 20459 } // namespace internal | 20463 } // namespace internal |
| 20460 } // namespace v8 | 20464 } // namespace v8 |
| OLD | NEW |