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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool SlowIsUndeclaredGlobal() { | 122 bool SlowIsUndeclaredGlobal() { |
123 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; | 123 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; |
124 } | 124 } |
125 | 125 |
126 // Determines which map must be used for keeping the code stub. | 126 // Determines which map must be used for keeping the code stub. |
127 // These methods should not be called with undefined or null. | 127 // These methods should not be called with undefined or null. |
128 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, | 128 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, |
129 JSObject* holder); | 129 JSObject* holder); |
130 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, | 130 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, |
131 JSObject* holder); | 131 JSObject* holder); |
132 static inline JSObject* GetCodeCacheHolder(Object* object, | 132 static inline JSObject* GetCodeCacheHolder(Isolate* isolate, |
| 133 Object* object, |
133 InlineCacheHolderFlag holder); | 134 InlineCacheHolderFlag holder); |
134 | 135 |
135 protected: | 136 protected: |
136 Address fp() const { return fp_; } | 137 Address fp() const { return fp_; } |
137 Address pc() const { return *pc_address_; } | 138 Address pc() const { return *pc_address_; } |
138 Isolate* isolate() const { return isolate_; } | 139 Isolate* isolate() const { return isolate_; } |
139 | 140 |
140 #ifdef ENABLE_DEBUGGER_SUPPORT | 141 #ifdef ENABLE_DEBUGGER_SUPPORT |
141 // Computes the address in the original code when the code running is | 142 // Computes the address in the original code when the code running is |
142 // containing break points (calls to DebugBreakXXX builtins). | 143 // containing break points (calls to DebugBreakXXX builtins). |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 // Helper for BinaryOpIC and CompareIC. | 813 // Helper for BinaryOpIC and CompareIC. |
813 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 814 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
814 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 815 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
815 | 816 |
816 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_Miss); | 817 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_Miss); |
817 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); | 818 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); |
818 | 819 |
819 } } // namespace v8::internal | 820 } } // namespace v8::internal |
820 | 821 |
821 #endif // V8_IC_H_ | 822 #endif // V8_IC_H_ |
OLD | NEW |