Index: src/ic-inl.h |
diff --git a/src/ic-inl.h b/src/ic-inl.h |
index 77f409a1ef2e7f249bc7a2b8dcc32dabeb098e3a..11ab7101585a9aed9aac1aa5823015f7a321e253 100644 |
--- a/src/ic-inl.h |
+++ b/src/ic-inl.h |
@@ -129,8 +129,11 @@ InlineCacheHolderFlag IC::GetCodeCacheForObject(JSObject* object, |
} |
-JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) { |
- Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype()); |
+JSObject* IC::GetCodeCacheHolder(Isolate* isolate, |
+ Object* object, |
+ InlineCacheHolderFlag holder) { |
+ Object* map_owner = |
+ holder == OWN_MAP ? object : object->GetPrototype(isolate); |
ASSERT(map_owner->IsJSObject()); |
return JSObject::cast(map_owner); |
} |