Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index f3b1c21aca6c253e0e3367b9757abe6e37902f46..c2fb0bc0f8b2019b9defe02aba4709a8d46726da 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -2133,16 +2133,6 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
- // Constructor is in rax. |
- DCHECK(lit != NULL); |
- __ Push(rax); |
- |
- // No access check is needed here since the constructor is created by the |
- // class literal. |
- Register scratch = rbx; |
- __ movp(scratch, FieldOperand(rax, JSFunction::kPrototypeOrInitialMapOffset)); |
- __ Push(scratch); |
- |
for (int i = 0; i < lit->properties()->length(); i++) { |
ObjectLiteral::Property* property = lit->properties()->at(i); |
Expression* value = property->value(); |
@@ -2193,10 +2183,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); |
} |