| Index: src/hydrogen.cc | 
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc | 
| index 5bd55d7b9c6bafa090fd0c7f66a91985f614f4fa..eef51e5d952ceddd572edc2e05cd03a3fde2e52c 100644 | 
| --- a/src/hydrogen.cc | 
| +++ b/src/hydrogen.cc | 
| @@ -6418,8 +6418,7 @@ | 
| if (!CanInlinePropertyAccess(map_)) return false; | 
| if (IsJSObjectFieldAccessor()) return IsLoad(); | 
| if (IsJSArrayBufferViewFieldAccessor()) return IsLoad(); | 
| -  if (map_->IsJSFunctionMap() && map_->is_constructor() && | 
| -      !map_->has_non_instance_prototype() && | 
| +  if (map_->function_with_prototype() && !map_->has_non_instance_prototype() && | 
| name_.is_identical_to(isolate()->factory()->prototype_string())) { | 
| return IsLoad(); | 
| } | 
| @@ -6533,7 +6532,7 @@ | 
| } | 
|  | 
| if (info->name().is_identical_to(isolate()->factory()->prototype_string()) && | 
| -      info->map()->IsJSFunctionMap() && info->map()->is_constructor()) { | 
| +      info->map()->function_with_prototype()) { | 
| DCHECK(!info->map()->has_non_instance_prototype()); | 
| return New<HLoadFunctionPrototype>(checked_object); | 
| } | 
|  |