OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } else { | 110 } else { |
111 ASSERT(!SlowIsContextual()); | 111 ASSERT(!SlowIsContextual()); |
112 return false; | 112 return false; |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 bool SlowIsContextual() { | 116 bool SlowIsContextual() { |
117 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; | 117 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; |
118 } | 118 } |
119 | 119 |
120 // Returns the map to use for caching stubs for a given object. | 120 // Determines which map must be used for keeping the code stub. |
121 // This method should not be called with undefined or null. | 121 // These methods should not be called with undefined or null. |
122 static inline Map* GetCodeCacheMapForObject(Object* object); | 122 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, |
| 123 JSObject* holder); |
| 124 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, |
| 125 JSObject* holder); |
| 126 static inline Map* GetCodeCacheMap(Object* object, |
| 127 InlineCacheHolderFlag holder); |
123 | 128 |
124 protected: | 129 protected: |
125 Address fp() const { return fp_; } | 130 Address fp() const { return fp_; } |
126 Address pc() const { return *pc_address_; } | 131 Address pc() const { return *pc_address_; } |
127 | 132 |
128 #ifdef ENABLE_DEBUGGER_SUPPORT | 133 #ifdef ENABLE_DEBUGGER_SUPPORT |
129 // Computes the address in the original code when the code running is | 134 // Computes the address in the original code when the code running is |
130 // containing break points (calls to DebugBreakXXX builtins). | 135 // containing break points (calls to DebugBreakXXX builtins). |
131 Address OriginalCodeAddress(); | 136 Address OriginalCodeAddress(); |
132 #endif | 137 #endif |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 static const char* GetName(TypeInfo type_info); | 494 static const char* GetName(TypeInfo type_info); |
490 | 495 |
491 static State ToState(TypeInfo type_info); | 496 static State ToState(TypeInfo type_info); |
492 | 497 |
493 static TypeInfo GetTypeInfo(Object* left, Object* right); | 498 static TypeInfo GetTypeInfo(Object* left, Object* right); |
494 }; | 499 }; |
495 | 500 |
496 } } // namespace v8::internal | 501 } } // namespace v8::internal |
497 | 502 |
498 #endif // V8_IC_H_ | 503 #endif // V8_IC_H_ |
OLD | NEW |