Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 2a70cfb7d77a4fdf40571b46d7dbc84eceb5fd7d..80da232dd29f2342241b446fcd3777e26fcd5c3e 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -2147,16 +2147,6 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
- // Constructor is in eax. |
- DCHECK(lit != NULL); |
- __ push(eax); |
- |
- // No access check is needed here since the constructor is created by the |
- // class literal. |
- Register scratch = ebx; |
- __ mov(scratch, FieldOperand(eax, JSFunction::kPrototypeOrInitialMapOffset)); |
- __ Push(scratch); |
- |
for (int i = 0; i < lit->properties()->length(); i++) { |
ObjectLiteral::Property* property = lit->properties()->at(i); |
Expression* value = property->value(); |
@@ -2204,10 +2194,6 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
break; |
} |
} |
- |
- // Set both the prototype and constructor to have fast properties, and also |
- // freeze them in strong mode. |
- __ CallRuntime(Runtime::kFinalizeClassDefinition); |
} |