Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7459ed4525b2d96df98729803fddc17fbbdf2227..1f4881037bdd80375a9a503981714dedc880a72a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -331,11 +331,10 @@ MaybeHandle<Object> Object::GetPropertyWithAccessor(Handle<Object> receiver, |
} |
-bool AccessorInfo::IsCompatibleReceiverType(Isolate* isolate, |
- Handle<AccessorInfo> info, |
- Handle<HeapType> type) { |
+bool AccessorInfo::IsCompatibleReceiverMap(Isolate* isolate, |
+ Handle<AccessorInfo> info, |
+ Handle<Map> map) { |
if (!info->HasExpectedReceiverType()) return true; |
- Handle<Map> map = IC::TypeToMap(*type, isolate); |
if (!map->IsJSObjectMap()) return false; |
return FunctionTemplateInfo::cast(info->expected_receiver_type()) |
->IsTemplateFor(*map); |