Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index 02b2a240881a5a04a75a106eadb4ac44271fb29e..d2c8cb1de906a119ca2dccb2e9494f6715355c97 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -2511,23 +2511,20 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
| const PropertyAttributes attributes = |
| static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); |
| - // Create the ThrowTypeError functions. |
| + // Create the ThrowTypeError function. |
| Handle<AccessorPair> callee = factory->NewAccessorPair(); |
| - Handle<AccessorPair> caller = factory->NewAccessorPair(); |
| Handle<JSFunction> poison = GetStrictArgumentsPoisonFunction(); |
| - // Install the ThrowTypeError functions. |
| + // Install the ThrowTypeError function. |
| callee->set_getter(*poison); |
| callee->set_setter(*poison); |
| - caller->set_getter(*poison); |
| - caller->set_setter(*poison); |
| // Create the map. Allocate one in-object field for length. |
| Handle<Map> map = factory->NewMap( |
| JS_ARGUMENTS_TYPE, JSStrictArgumentsObject::kSize, FAST_ELEMENTS); |
| // Create the descriptor array for the arguments object. |
| - Map::EnsureDescriptorSlack(map, 3); |
| + Map::EnsureDescriptorSlack(map, 2); |
| { // length |
| DataDescriptor d(factory->length_string(), |
| @@ -2540,11 +2537,6 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
| attributes); |
| map->AppendDescriptor(&d); |
| } |
| - { // caller |
| - AccessorConstantDescriptor d(factory->caller_string(), caller, |
| - attributes); |
| - map->AppendDescriptor(&d); |
| - } |
|
caitp
2016/10/27 13:31:02
afaik this LGTM, but lets modify the tests rather
|
| // @@iterator method is added later. |
| DCHECK_EQ(native_context()->object_function()->prototype(), |