Index: src/ic.h |
=================================================================== |
--- src/ic.h (revision 5007) |
+++ src/ic.h (working copy) |
@@ -117,9 +117,14 @@ |
return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; |
} |
- // Returns the map to use for caching stubs for a given object. |
- // This method should not be called with undefined or null. |
- static inline Map* GetCodeCacheMapForObject(Object* object); |
+ // Determines which map must be used for keeping the code stub. |
+ // These methods should not be called with undefined or null. |
+ static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, |
+ JSObject* holder); |
+ static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, |
+ JSObject* holder); |
+ static inline Map* GetCodeCacheMap(Object* object, |
+ InlineCacheHolderFlag holder); |
protected: |
Address fp() const { return fp_; } |