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 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 Isolate* isolate() const { return isolate_; } | 127 Isolate* isolate() const { return isolate_; } |
128 | 128 |
129 // Get the shared function info of the caller. | 129 // Get the shared function info of the caller. |
130 SharedFunctionInfo* GetSharedFunctionInfo() const; | 130 SharedFunctionInfo* GetSharedFunctionInfo() const; |
131 // Get the code object of the caller. | 131 // Get the code object of the caller. |
132 Code* GetCode() const; | 132 Code* GetCode() const; |
133 // Get the original (non-breakpointed) code object of the caller. | 133 // Get the original (non-breakpointed) code object of the caller. |
134 Code* GetOriginalCode() const; | 134 Code* GetOriginalCode() const; |
135 | 135 |
136 bool AddressIsOptimizedCode() const; | 136 bool AddressIsOptimizedCode() const; |
| 137 bool AddressIsDeoptimizedCode() const; |
137 | 138 |
138 // Set the call-site target. | 139 // Set the call-site target. |
139 inline void set_target(Code* code); | 140 inline void set_target(Code* code); |
140 bool is_target_set() { return target_set_; } | 141 bool is_target_set() { return target_set_; } |
141 bool is_vector_set() { return vector_set_; } | 142 bool is_vector_set() { return vector_set_; } |
142 | 143 |
143 bool UseVector() const { | 144 bool UseVector() const { |
144 bool use = ICUseVector(kind()); | 145 bool use = ICUseVector(kind()); |
145 // If we are supposed to use the nexus, verify the nexus is non-null. | 146 // If we are supposed to use the nexus, verify the nexus is non-null. |
146 DCHECK(!use || nexus_ != NULL); | 147 DCHECK(!use || nexus_ != NULL); |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 | 758 |
758 // Support functions for interceptor handlers. | 759 // Support functions for interceptor handlers. |
759 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 760 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
760 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 761 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
761 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 762 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
762 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 763 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
763 } | 764 } |
764 } // namespace v8::internal | 765 } // namespace v8::internal |
765 | 766 |
766 #endif // V8_IC_H_ | 767 #endif // V8_IC_H_ |
OLD | NEW |