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 <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 14937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14948 for (uint32_t i = 0; i < back_edges.length(); i++) { | 14948 for (uint32_t i = 0; i < back_edges.length(); i++) { |
14949 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " | 14949 os << std::setw(6) << back_edges.ast_id(i).ToInt() << " " |
14950 << std::setw(9) << back_edges.pc_offset(i) << " " << std::setw(10) | 14950 << std::setw(9) << back_edges.pc_offset(i) << " " << std::setw(10) |
14951 << back_edges.loop_depth(i) << "\n"; | 14951 << back_edges.loop_depth(i) << "\n"; |
14952 } | 14952 } |
14953 | 14953 |
14954 os << "\n"; | 14954 os << "\n"; |
14955 } | 14955 } |
14956 #ifdef OBJECT_PRINT | 14956 #ifdef OBJECT_PRINT |
14957 if (!type_feedback_info()->IsUndefined()) { | 14957 if (!type_feedback_info()->IsUndefined()) { |
14958 OFStream os(stdout); | |
14959 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); | 14958 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); |
14960 os << "\n"; | 14959 os << "\n"; |
14961 } | 14960 } |
14962 #endif | 14961 #endif |
14963 } | 14962 } |
14964 | 14963 |
14965 if (handler_table()->length() > 0) { | 14964 if (handler_table()->length() > 0) { |
14966 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; | 14965 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; |
14967 if (kind() == FUNCTION) { | 14966 if (kind() == FUNCTION) { |
14968 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); | 14967 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); |
(...skipping 4821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19790 if (cell->value() != *new_value) { | 19789 if (cell->value() != *new_value) { |
19791 cell->set_value(*new_value); | 19790 cell->set_value(*new_value); |
19792 Isolate* isolate = cell->GetIsolate(); | 19791 Isolate* isolate = cell->GetIsolate(); |
19793 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19792 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19794 isolate, DependentCode::kPropertyCellChangedGroup); | 19793 isolate, DependentCode::kPropertyCellChangedGroup); |
19795 } | 19794 } |
19796 } | 19795 } |
19797 | 19796 |
19798 } // namespace internal | 19797 } // namespace internal |
19799 } // namespace v8 | 19798 } // namespace v8 |
OLD | NEW |