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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 Address pc() const { return *pc_address_; } | 139 Address pc() const { return *pc_address_; } |
140 Isolate* isolate() const { return isolate_; } | 140 Isolate* isolate() const { return isolate_; } |
141 | 141 |
142 // Get the shared function info of the caller. | 142 // Get the shared function info of the caller. |
143 SharedFunctionInfo* GetSharedFunctionInfo() const; | 143 SharedFunctionInfo* GetSharedFunctionInfo() const; |
144 // Get the code object of the caller. | 144 // Get the code object of the caller. |
145 Code* GetCode() const; | 145 Code* GetCode() const; |
146 // Get the original (non-breakpointed) code object of the caller. | 146 // Get the original (non-breakpointed) code object of the caller. |
147 Code* GetOriginalCode() const; | 147 Code* GetOriginalCode() const; |
148 | 148 |
149 bool AddressIsOptimizedCode() const; | |
150 | |
151 // Set the call-site target. | 149 // Set the call-site target. |
152 inline void set_target(Code* code); | 150 inline void set_target(Code* code); |
153 bool is_target_set() { return target_set_; } | 151 bool is_target_set() { return target_set_; } |
154 bool is_vector_set() { return vector_set_; } | 152 bool is_vector_set() { return vector_set_; } |
155 | 153 |
156 bool UseVector() const { | 154 bool UseVector() const { |
157 bool use = ICUseVector(kind()); | 155 bool use = ICUseVector(kind()); |
158 // If we are supposed to use the nexus, verify the nexus is non-null. | 156 // If we are supposed to use the nexus, verify the nexus is non-null. |
159 DCHECK(!use || nexus_ != NULL); | 157 DCHECK(!use || nexus_ != NULL); |
160 return use; | 158 return use; |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 | 766 |
769 // Support functions for interceptor handlers. | 767 // Support functions for interceptor handlers. |
770 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
771 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
772 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
773 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
774 } | 772 } |
775 } // namespace v8::internal | 773 } // namespace v8::internal |
776 | 774 |
777 #endif // V8_IC_H_ | 775 #endif // V8_IC_H_ |
OLD | NEW |