Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index d86479833c661ccab3bf7a3e028a91559e8c6fbe..e74dcc2553105966f47f5d8fe086cc7cc0f4da26 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -2236,21 +2236,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; |
- __ ld(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()) { |
__ ld(scratch, MemOperand(sp, kPointerSize)); // constructor |
} else { |
@@ -2298,10 +2288,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); |
} |