OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 11806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11817 IC::Clear(this->GetIsolate(), info->pc(), | 11817 IC::Clear(this->GetIsolate(), info->pc(), |
11818 info->host()->constant_pool()); | 11818 info->host()->constant_pool()); |
11819 } | 11819 } |
11820 } | 11820 } |
11821 } | 11821 } |
11822 } | 11822 } |
11823 | 11823 |
11824 | 11824 |
11825 void SharedFunctionInfo::ClearTypeFeedbackInfo() { | 11825 void SharedFunctionInfo::ClearTypeFeedbackInfo() { |
11826 feedback_vector()->ClearSlots(this); | 11826 feedback_vector()->ClearSlots(this); |
11827 feedback_vector()->ClearICSlots(this); | |
11828 } | 11827 } |
11829 | 11828 |
11830 | 11829 |
11831 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() { | 11830 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() { |
11832 feedback_vector()->ClearSlotsAtGCTime(this); | 11831 feedback_vector()->ClearSlotsAtGCTime(this); |
11833 feedback_vector()->ClearICSlotsAtGCTime(this); | |
11834 } | 11832 } |
11835 | 11833 |
11836 | 11834 |
11837 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { | 11835 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { |
11838 DisallowHeapAllocation no_gc; | 11836 DisallowHeapAllocation no_gc; |
11839 DCHECK(kind() == FUNCTION); | 11837 DCHECK(kind() == FUNCTION); |
11840 BackEdgeTable back_edges(this, &no_gc); | 11838 BackEdgeTable back_edges(this, &no_gc); |
11841 for (uint32_t i = 0; i < back_edges.length(); i++) { | 11839 for (uint32_t i = 0; i < back_edges.length(); i++) { |
11842 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); | 11840 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); |
11843 } | 11841 } |
(...skipping 4968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16812 if (cell->value() != *new_value) { | 16810 if (cell->value() != *new_value) { |
16813 cell->set_value(*new_value); | 16811 cell->set_value(*new_value); |
16814 Isolate* isolate = cell->GetIsolate(); | 16812 Isolate* isolate = cell->GetIsolate(); |
16815 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16813 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16816 isolate, DependentCode::kPropertyCellChangedGroup); | 16814 isolate, DependentCode::kPropertyCellChangedGroup); |
16817 } | 16815 } |
16818 } | 16816 } |
16819 | 16817 |
16820 } // namespace internal | 16818 } // namespace internal |
16821 } // namespace v8 | 16819 } // namespace v8 |
OLD | NEW |