OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 Isolate* isolate); | 163 Isolate* isolate); |
164 | 164 |
165 protected: | 165 protected: |
166 // Get the call-site target; used for determining the state. | 166 // Get the call-site target; used for determining the state. |
167 Handle<Code> target() const { return target_; } | 167 Handle<Code> target() const { return target_; } |
168 | 168 |
169 Address fp() const { return fp_; } | 169 Address fp() const { return fp_; } |
170 Address pc() const { return *pc_address_; } | 170 Address pc() const { return *pc_address_; } |
171 Isolate* isolate() const { return isolate_; } | 171 Isolate* isolate() const { return isolate_; } |
172 | 172 |
173 #ifdef ENABLE_DEBUGGER_SUPPORT | |
174 // Get the shared function info of the caller. | 173 // Get the shared function info of the caller. |
175 SharedFunctionInfo* GetSharedFunctionInfo() const; | 174 SharedFunctionInfo* GetSharedFunctionInfo() const; |
176 // Get the code object of the caller. | 175 // Get the code object of the caller. |
177 Code* GetCode() const; | 176 Code* GetCode() const; |
178 // Get the original (non-breakpointed) code object of the caller. | 177 // Get the original (non-breakpointed) code object of the caller. |
179 Code* GetOriginalCode() const; | 178 Code* GetOriginalCode() const; |
180 #endif | |
181 | 179 |
182 // Set the call-site target. | 180 // Set the call-site target. |
183 void set_target(Code* code) { | 181 void set_target(Code* code) { |
184 #ifdef VERIFY_HEAP | 182 #ifdef VERIFY_HEAP |
185 code->VerifyEmbeddedObjectsDependency(); | 183 code->VerifyEmbeddedObjectsDependency(); |
186 #endif | 184 #endif |
187 SetTargetAtAddress(address(), code, constant_pool()); | 185 SetTargetAtAddress(address(), code, constant_pool()); |
188 target_set_ = true; | 186 target_set_ = true; |
189 } | 187 } |
190 | 188 |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); | 974 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); |
977 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); | 975 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); |
978 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); | 976 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); |
979 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); | 977 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); |
980 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); | 978 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); |
981 | 979 |
982 | 980 |
983 } } // namespace v8::internal | 981 } } // namespace v8::internal |
984 | 982 |
985 #endif // V8_IC_H_ | 983 #endif // V8_IC_H_ |
OLD | NEW |