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 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 inline bool AddressIsDeoptimizedCode() const; |
| 138 inline static bool AddressIsDeoptimizedCode(Isolate* isolate, |
| 139 Address address); |
138 | 140 |
139 // Set the call-site target. | 141 // Set the call-site target. |
140 inline void set_target(Code* code); | 142 inline void set_target(Code* code); |
141 bool is_target_set() { return target_set_; } | 143 bool is_target_set() { return target_set_; } |
142 bool is_vector_set() { return vector_set_; } | 144 bool is_vector_set() { return vector_set_; } |
143 | 145 |
144 bool UseVector() const { | 146 bool UseVector() const { |
145 bool use = ICUseVector(kind()); | 147 bool use = ICUseVector(kind()); |
146 // If we are supposed to use the nexus, verify the nexus is non-null. | 148 // If we are supposed to use the nexus, verify the nexus is non-null. |
147 DCHECK(!use || nexus_ != NULL); | 149 DCHECK(!use || nexus_ != NULL); |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 744 |
743 // Support functions for interceptor handlers. | 745 // Support functions for interceptor handlers. |
744 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 746 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
745 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 747 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
746 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 748 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
747 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 749 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
748 } | 750 } |
749 } // namespace v8::internal | 751 } // namespace v8::internal |
750 | 752 |
751 #endif // V8_IC_H_ | 753 #endif // V8_IC_H_ |
OLD | NEW |