Index: src/ic/call-optimization.cc |
diff --git a/src/ic/call-optimization.cc b/src/ic/call-optimization.cc |
index 5d7ef7bbebdb283b07ea957dafe52edd1b8457ca..85dc01acf0cba085224721b4c7d03128fdf9a0fc 100644 |
--- a/src/ic/call-optimization.cc |
+++ b/src/ic/call-optimization.cc |
@@ -51,12 +51,12 @@ bool CallOptimization::IsCompatibleReceiver(Handle<Object> receiver, |
DCHECK(is_simple_api_call()); |
if (!receiver->IsHeapObject()) return false; |
Handle<Map> map(HeapObject::cast(*receiver)->map()); |
- return IsCompatibleReceiverType(map, holder); |
+ return IsCompatibleReceiverMap(map, holder); |
} |
-bool CallOptimization::IsCompatibleReceiverType(Handle<Map> map, |
- Handle<JSObject> holder) const { |
+bool CallOptimization::IsCompatibleReceiverMap(Handle<Map> map, |
+ Handle<JSObject> holder) const { |
HolderLookup holder_lookup; |
Handle<JSObject> api_holder = LookupHolderOfExpectedType(map, &holder_lookup); |
switch (holder_lookup) { |