| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 Handle<Code> target() const { return target_; } | 124 Handle<Code> target() const { return target_; } |
| 125 | 125 |
| 126 Address fp() const { return fp_; } | 126 Address fp() const { return fp_; } |
| 127 Address pc() const { return *pc_address_; } | 127 Address pc() const { return *pc_address_; } |
| 128 Isolate* isolate() const { return isolate_; } | 128 Isolate* isolate() const { return isolate_; } |
| 129 | 129 |
| 130 // Get the shared function info of the caller. | 130 // Get the shared function info of the caller. |
| 131 SharedFunctionInfo* GetSharedFunctionInfo() const; | 131 SharedFunctionInfo* GetSharedFunctionInfo() const; |
| 132 // Get the code object of the caller. | 132 // Get the code object of the caller. |
| 133 Code* GetCode() const; | 133 Code* GetCode() const; |
| 134 // Get the original (non-breakpointed) code object of the caller. | |
| 135 Code* GetOriginalCode() const; | |
| 136 | 134 |
| 137 bool AddressIsOptimizedCode() const; | 135 bool AddressIsOptimizedCode() const; |
| 138 inline bool AddressIsDeoptimizedCode() const; | 136 inline bool AddressIsDeoptimizedCode() const; |
| 139 inline static bool AddressIsDeoptimizedCode(Isolate* isolate, | 137 inline static bool AddressIsDeoptimizedCode(Isolate* isolate, |
| 140 Address address); | 138 Address address); |
| 141 | 139 |
| 142 // Set the call-site target. | 140 // Set the call-site target. |
| 143 inline void set_target(Code* code); | 141 inline void set_target(Code* code); |
| 144 bool is_target_set() { return target_set_; } | 142 bool is_target_set() { return target_set_; } |
| 145 bool is_vector_set() { return vector_set_; } | 143 bool is_vector_set() { return vector_set_; } |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 754 |
| 757 // Support functions for interceptor handlers. | 755 // Support functions for interceptor handlers. |
| 758 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 756 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
| 759 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 757 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
| 760 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 758 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
| 761 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 759 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
| 762 } | 760 } |
| 763 } // namespace v8::internal | 761 } // namespace v8::internal |
| 764 | 762 |
| 765 #endif // V8_IC_H_ | 763 #endif // V8_IC_H_ |
| OLD | NEW |