| 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 28506d079333afa2a234f6d9c5fff70f3de7246d..82669b14a3fd5524b7a93c2d729925e2f6db0686 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -2229,21 +2229,11 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
|
|
|
|
|
| void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| - // Constructor is in v0.
|
| - DCHECK(lit != NULL);
|
| - __ push(v0);
|
| -
|
| - // No access check is needed here since the constructor is created by the
|
| - // class literal.
|
| - Register scratch = a1;
|
| - __ lw(scratch,
|
| - FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset));
|
| - __ push(scratch);
|
| -
|
| for (int i = 0; i < lit->properties()->length(); i++) {
|
| ObjectLiteral::Property* property = lit->properties()->at(i);
|
| Expression* value = property->value();
|
|
|
| + Register scratch = a1;
|
| if (property->is_static()) {
|
| __ lw(scratch, MemOperand(sp, kPointerSize)); // constructor
|
| } else {
|
| @@ -2291,10 +2281,6 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| UNREACHABLE();
|
| }
|
| }
|
| -
|
| - // Set both the prototype and constructor to have fast properties, and also
|
| - // freeze them in strong mode.
|
| - __ CallRuntime(Runtime::kFinalizeClassDefinition);
|
| }
|
|
|
|
|
|
|