| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 16bd8bc27d2109dcbfb63e546978829f4c31ba00..f19c2471b27f7e3e26f9c14eb977e56db1b78acf 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -2574,24 +2574,12 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit,
|
| }
|
| }
|
|
|
| - // prototype
|
| - __ CallRuntime(Runtime::kToFastProperties, 1);
|
| -
|
| - // constructor
|
| - __ CallRuntime(Runtime::kToFastProperties, 1);
|
| -
|
| - if (is_strong(language_mode())) {
|
| - __ ldr(scratch,
|
| - FieldMemOperand(r0, JSFunction::kPrototypeOrInitialMapOffset));
|
| - __ push(r0);
|
| - __ push(scratch);
|
| - // TODO(conradw): It would be more efficient to define the properties with
|
| - // the right attributes the first time round.
|
| - // Freeze the prototype.
|
| - __ CallRuntime(Runtime::kObjectFreeze, 1);
|
| - // Freeze the constructor.
|
| - __ CallRuntime(Runtime::kObjectFreeze, 1);
|
| - }
|
| + // Set both the prototype and constructor to have fast properties, and also
|
| + // freeze them in strong mode.
|
| + __ CallRuntime(is_strong(language_mode())
|
| + ? Runtime::kFinalizeClassDefinitionStrong
|
| + : Runtime::kFinalizeClassDefinition,
|
| + 2);
|
| }
|
|
|
|
|
|
|