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 5a8a20072c3379d688eb005e18889025056536fb..99f1a26a13f8fb88d2e25ef64d33260edbe0a8c1 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1697,58 +1697,6 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
context()->Plug(eax); |
} |
- |
-void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
- for (int i = 0; i < lit->properties()->length(); i++) { |
- ClassLiteral::Property* property = lit->properties()->at(i); |
- Expression* value = property->value(); |
- |
- if (property->is_static()) { |
- PushOperand(Operand(esp, kPointerSize)); // constructor |
- } else { |
- PushOperand(Operand(esp, 0)); // prototype |
- } |
- EmitPropertyKey(property, lit->GetIdForProperty(i)); |
- |
- // The static prototype property is read only. We handle the non computed |
- // property name case in the parser. Since this is the only case where we |
- // need to check for an own read only property we special case this so we do |
- // not need to do this for every property. |
- if (property->is_static() && property->is_computed_name()) { |
- __ CallRuntime(Runtime::kThrowIfStaticPrototype); |
- __ push(eax); |
- } |
- |
- VisitForStackValue(value); |
- if (NeedsHomeObject(value)) { |
- EmitSetHomeObject(value, 2, property->GetSlot()); |
- } |
- |
- switch (property->kind()) { |
- case ClassLiteral::Property::METHOD: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); |
- CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); |
- break; |
- |
- case ClassLiteral::Property::GETTER: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); |
- break; |
- |
- case ClassLiteral::Property::SETTER: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
- break; |
- |
- case ClassLiteral::Property::FIELD: |
- UNREACHABLE(); |
- break; |
- } |
- } |
-} |
- |
- |
void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
PopOperand(edx); |
Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |