Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 22bdfa381e93bbd0150ff72a1a5fb83b6545dbb8..ed32c3c82e1a6928bead718b28843dc7e2ec8b28 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6770,10 +6770,10 @@ void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { |
} |
-bool AccessorInfo::IsCompatibleReceiver(Object* receiver) { |
- Object* function_template = expected_receiver_type(); |
- if (!function_template->IsFunctionTemplateInfo()) return true; |
- return FunctionTemplateInfo::cast(function_template)->IsTemplateFor(receiver); |
+bool AccessorInfo::IsCompatibleReceiver(Map* map) { |
+ ASSERT(HasExpectedReceiverType()); |
+ return FunctionTemplateInfo::cast(expected_receiver_type()) |
+ ->IsTemplateFor(map); |
} |