| Index: src/ic/handler-compiler.cc
 | 
| diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc
 | 
| index 37933aff50ea2f1b8e0e9830f8e9edc652574d2a..9b10045f80b51d8ca2e88bfceaf0c632b6fc1499 100644
 | 
| --- a/src/ic/handler-compiler.cc
 | 
| +++ b/src/ic/handler-compiler.cc
 | 
| @@ -95,24 +95,9 @@ Register NamedLoadHandlerCompiler::FrontendHeader(Register object_reg,
 | 
|                                                    Handle<Name> name,
 | 
|                                                    Label* miss,
 | 
|                                                    ReturnHolder return_what) {
 | 
| -  PrototypeCheckType check_type = SKIP_RECEIVER;
 | 
| -  int function_index = map()->IsPrimitiveMap()
 | 
| -                           ? map()->GetConstructorFunctionIndex()
 | 
| -                           : Map::kNoConstructorFunctionIndex;
 | 
| -  if (function_index != Map::kNoConstructorFunctionIndex) {
 | 
| -    GenerateDirectLoadGlobalFunctionPrototype(masm(), function_index,
 | 
| -                                              scratch1(), miss);
 | 
| -    Object* function = isolate()->native_context()->get(function_index);
 | 
| -    Object* prototype = JSFunction::cast(function)->instance_prototype();
 | 
| -    Handle<Map> map(JSObject::cast(prototype)->map());
 | 
| -    set_map(map);
 | 
| -    object_reg = scratch1();
 | 
| -    check_type = CHECK_ALL_MAPS;
 | 
| -  }
 | 
| -
 | 
|    // Check that the maps starting from the prototype haven't changed.
 | 
|    return CheckPrototypes(object_reg, scratch1(), scratch2(), scratch3(), name,
 | 
| -                         miss, check_type, return_what);
 | 
| +                         miss, return_what);
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -123,7 +108,7 @@ Register NamedStoreHandlerCompiler::FrontendHeader(Register object_reg,
 | 
|                                                     Label* miss,
 | 
|                                                     ReturnHolder return_what) {
 | 
|    return CheckPrototypes(object_reg, this->name(), scratch1(), scratch2(), name,
 | 
| -                         miss, SKIP_RECEIVER, return_what);
 | 
| +                         miss, return_what);
 | 
|  }
 | 
|  
 | 
|  
 | 
| 
 |