| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 47fe9118075bba5bfe444da00e925cf686fccd6e..c107b6b334dc87fa1c64450c72bf585ac8888519 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -2561,23 +2561,12 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit,
|
| }
|
| }
|
|
|
| - // prototype
|
| - __ CallRuntime(Runtime::kToFastProperties, 1);
|
| -
|
| - // constructor
|
| - __ CallRuntime(Runtime::kToFastProperties, 1);
|
| -
|
| - if (is_strong(language_mode())) {
|
| - __ lw(scratch,
|
| - FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset));
|
| - __ Push(v0, 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);
|
| }
|
|
|
|
|
|
|