| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 51a6d450f75308dd91c3988f46796bcccdac1070..eb2269c15ecf6292d86e553157b532a33d5894ab 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -382,47 +382,45 @@ void Genesis::SetFunctionInstanceDescriptor(
|
| int size = IsFunctionModeWithPrototype(function_mode) ? 5 : 4;
|
| Map::EnsureDescriptorSlack(map, size);
|
|
|
| - PropertyAttributes ro_attribs =
|
| - static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY);
|
| - PropertyAttributes roc_attribs =
|
| - static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY);
|
| + PropertyAttributes attribs = static_cast<PropertyAttributes>(
|
| + DONT_ENUM | DONT_DELETE | READ_ONLY);
|
|
|
| Handle<AccessorInfo> length =
|
| - Accessors::FunctionLengthInfo(isolate(), ro_attribs);
|
| + Accessors::FunctionLengthInfo(isolate(), attribs);
|
| { // Add length.
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(length->name())),
|
| - length, ro_attribs);
|
| + length, attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| Handle<AccessorInfo> name =
|
| - Accessors::FunctionNameInfo(isolate(), ro_attribs);
|
| + Accessors::FunctionNameInfo(isolate(), attribs);
|
| { // Add name.
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(name->name())), name,
|
| - roc_attribs);
|
| + attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| Handle<AccessorInfo> args =
|
| - Accessors::FunctionArgumentsInfo(isolate(), ro_attribs);
|
| + Accessors::FunctionArgumentsInfo(isolate(), attribs);
|
| { // Add arguments.
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(args->name())), args,
|
| - ro_attribs);
|
| + attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| Handle<AccessorInfo> caller =
|
| - Accessors::FunctionCallerInfo(isolate(), ro_attribs);
|
| + Accessors::FunctionCallerInfo(isolate(), attribs);
|
| { // Add caller.
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(caller->name())),
|
| - caller, ro_attribs);
|
| + caller, attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| if (IsFunctionModeWithPrototype(function_mode)) {
|
| if (function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE) {
|
| - ro_attribs = static_cast<PropertyAttributes>(ro_attribs & ~READ_ONLY);
|
| + attribs = static_cast<PropertyAttributes>(attribs & ~READ_ONLY);
|
| }
|
| Handle<AccessorInfo> prototype =
|
| - Accessors::FunctionPrototypeInfo(isolate(), ro_attribs);
|
| + Accessors::FunctionPrototypeInfo(isolate(), attribs);
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())),
|
| - prototype, ro_attribs);
|
| + prototype, attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| }
|
| @@ -542,8 +540,6 @@ void Genesis::SetStrictFunctionInstanceDescriptor(
|
| static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE);
|
| PropertyAttributes ro_attribs =
|
| static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY);
|
| - PropertyAttributes roc_attribs =
|
| - static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY);
|
|
|
| // Add length.
|
| if (function_mode == BOUND_FUNCTION) {
|
| @@ -561,10 +557,10 @@ void Genesis::SetStrictFunctionInstanceDescriptor(
|
| map->AppendDescriptor(&d);
|
| }
|
| Handle<AccessorInfo> name =
|
| - Accessors::FunctionNameInfo(isolate(), roc_attribs);
|
| + Accessors::FunctionNameInfo(isolate(), ro_attribs);
|
| { // Add name.
|
| AccessorConstantDescriptor d(Handle<Name>(Name::cast(name->name())), name,
|
| - roc_attribs);
|
| + ro_attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| { // Add arguments.
|
|
|