Index: src/ic-inl.h |
diff --git a/src/ic-inl.h b/src/ic-inl.h |
index 77f409a1ef2e7f249bc7a2b8dcc32dabeb098e3a..515617f7f59c019b4662809b4dc2c4b4fdc7965e 100644 |
--- a/src/ic-inl.h |
+++ b/src/ic-inl.h |
@@ -107,8 +107,9 @@ InlineCacheHolderFlag IC::GetCodeCacheForObject(Object* object, |
return GetCodeCacheForObject(JSObject::cast(object), holder); |
} |
// If the object is a value, we use the prototype map for the cache. |
- ASSERT(object->IsString() || object->IsNumber() || object->IsBoolean()); |
- return PROTOTYPE_MAP; |
+ ASSERT(object->IsString() || object->IsSymbol() || |
+ object->IsNumber() || object->IsBoolean()); |
+ return DELEGATE_MAP; |
} |
@@ -123,14 +124,14 @@ InlineCacheHolderFlag IC::GetCodeCacheForObject(JSObject* object, |
!object->HasFastProperties() && |
!object->IsJSGlobalProxy() && |
!object->IsJSGlobalObject()) { |
- return PROTOTYPE_MAP; |
+ return DELEGATE_MAP; |
} |
return OWN_MAP; |
} |
JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) { |
- Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype()); |
+ Object* map_owner = (holder == OWN_MAP ? object : object->GetDelegate()); |
ASSERT(map_owner->IsJSObject()); |
return JSObject::cast(map_owner); |
} |