Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 704bb80576d0b767e3fb099fcf11d20852409b4d..c1561fbc5768d74121f98f27e3bf5a3e3e775085 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1897,62 +1897,6 @@ void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
} |
-void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
- for (int i = 0; i < lit->properties()->length(); i++) { |
- ObjectLiteral::Property* property = lit->properties()->at(i); |
- Expression* value = property->value(); |
- |
- Register scratch = x1; |
- if (property->is_static()) { |
- __ Peek(scratch, kPointerSize); // constructor |
- } else { |
- __ Peek(scratch, 0); // prototype |
- } |
- PushOperand(scratch); |
- 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(x0); |
- } |
- |
- VisitForStackValue(value); |
- if (NeedsHomeObject(value)) { |
- EmitSetHomeObject(value, 2, property->GetSlot()); |
- } |
- |
- switch (property->kind()) { |
- case ObjectLiteral::Property::CONSTANT: |
- case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
- case ObjectLiteral::Property::PROTOTYPE: |
- UNREACHABLE(); |
- case ObjectLiteral::Property::COMPUTED: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); |
- CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); |
- break; |
- |
- case ObjectLiteral::Property::GETTER: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); |
- break; |
- |
- case ObjectLiteral::Property::SETTER: |
- PushOperand(Smi::FromInt(DONT_ENUM)); |
- CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
- break; |
- |
- default: |
- UNREACHABLE(); |
- } |
- } |
-} |
- |
- |
void FullCodeGenerator::EmitAssignment(Expression* expr, |
FeedbackVectorSlot slot) { |
DCHECK(expr->IsValidReferenceExpressionOrThis()); |