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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // Access the target code for the given IC address. | 134 // Access the target code for the given IC address. |
135 static inline Code* GetTargetAtAddress(Address address, | 135 static inline Code* GetTargetAtAddress(Address address, |
136 Address constant_pool); | 136 Address constant_pool); |
137 static inline void SetTargetAtAddress(Address address, Code* target, | 137 static inline void SetTargetAtAddress(Address address, Code* target, |
138 Address constant_pool); | 138 Address constant_pool); |
139 // As a vector-based IC, type feedback must be updated differently. | 139 // As a vector-based IC, type feedback must be updated differently. |
140 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host); | 140 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host); |
141 static void PostPatching(Address address, Code* target, Code* old_target); | 141 static void PostPatching(Address address, Code* target, Code* old_target); |
142 | 142 |
| 143 void TraceHandlerCacheHitStats(LookupIterator* lookup); |
| 144 |
143 // Compute the handler either by compiling or by retrieving a cached version. | 145 // Compute the handler either by compiling or by retrieving a cached version. |
144 Handle<Object> ComputeHandler(LookupIterator* lookup, | 146 Handle<Object> ComputeHandler(LookupIterator* lookup, |
145 Handle<Object> value = Handle<Code>::null()); | 147 Handle<Object> value = Handle<Code>::null()); |
146 virtual Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) { | 148 virtual Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) { |
147 UNREACHABLE(); | 149 UNREACHABLE(); |
148 return Handle<Code>::null(); | 150 return Handle<Code>::null(); |
149 } | 151 } |
150 virtual Handle<Code> CompileHandler(LookupIterator* lookup, | 152 virtual Handle<Code> CompileHandler(LookupIterator* lookup, |
151 Handle<Object> value, | 153 Handle<Object> value, |
152 CacheHolderFlag cache_holder) { | 154 CacheHolderFlag cache_holder) { |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 516 |
515 // Helper for BinaryOpIC and CompareIC. | 517 // Helper for BinaryOpIC and CompareIC. |
516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 518 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
517 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 519 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
518 InlinedSmiCheck check); | 520 InlinedSmiCheck check); |
519 | 521 |
520 } // namespace internal | 522 } // namespace internal |
521 } // namespace v8 | 523 } // namespace v8 |
522 | 524 |
523 #endif // V8_IC_H_ | 525 #endif // V8_IC_H_ |
OLD | NEW |