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 #ifndef V8_IC_H_ | 5 #ifndef V8_IC_H_ |
6 #define V8_IC_H_ | 6 #define V8_IC_H_ |
7 | 7 |
8 #include "src/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Access the target code for the given IC address. | 137 // Access the target code for the given IC address. |
138 static inline Code* GetTargetAtAddress(Address address, | 138 static inline Code* GetTargetAtAddress(Address address, |
139 Address constant_pool); | 139 Address constant_pool); |
140 static inline void SetTargetAtAddress(Address address, Code* target, | 140 static inline void SetTargetAtAddress(Address address, Code* target, |
141 Address constant_pool); | 141 Address constant_pool); |
142 static void OnTypeFeedbackChanged(Isolate* isolate, Address address, | 142 static void OnTypeFeedbackChanged(Isolate* isolate, Address address, |
143 State old_state, State new_state, | 143 State old_state, State new_state, |
144 bool target_remains_ic_stub); | 144 bool target_remains_ic_stub); |
145 // As a vector-based IC, type feedback must be updated differently. | 145 // As a vector-based IC, type feedback must be updated differently. |
146 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host, | 146 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host); |
147 TypeFeedbackVector* vector, State old_state, | |
148 State new_state); | |
149 static void PostPatching(Address address, Code* target, Code* old_target); | 147 static void PostPatching(Address address, Code* target, Code* old_target); |
150 | 148 |
151 // Compute the handler either by compiling or by retrieving a cached version. | 149 // Compute the handler either by compiling or by retrieving a cached version. |
152 Handle<Code> ComputeHandler(LookupIterator* lookup, | 150 Handle<Code> ComputeHandler(LookupIterator* lookup, |
153 Handle<Object> value = Handle<Code>::null()); | 151 Handle<Object> value = Handle<Code>::null()); |
154 virtual Handle<Code> CompileHandler(LookupIterator* lookup, | 152 virtual Handle<Code> CompileHandler(LookupIterator* lookup, |
155 Handle<Object> value, | 153 Handle<Object> value, |
156 CacheHolderFlag cache_holder) { | 154 CacheHolderFlag cache_holder) { |
157 UNREACHABLE(); | 155 UNREACHABLE(); |
158 return Handle<Code>::null(); | 156 return Handle<Code>::null(); |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 | 662 |
665 // Helper for BinaryOpIC and CompareIC. | 663 // Helper for BinaryOpIC and CompareIC. |
666 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 664 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
667 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 665 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
668 InlinedSmiCheck check); | 666 InlinedSmiCheck check); |
669 | 667 |
670 } // namespace internal | 668 } // namespace internal |
671 } // namespace v8 | 669 } // namespace v8 |
672 | 670 |
673 #endif // V8_IC_H_ | 671 #endif // V8_IC_H_ |
OLD | NEW |