| Index: src/full-codegen/s390/full-codegen-s390.cc
|
| diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc
|
| index ab3e940a437e6236a98ba261f0c72ea00af1fe60..37f8166fa7e5eb78860349709a9450124fd2817c 100644
|
| --- a/src/full-codegen/s390/full-codegen-s390.cc
|
| +++ b/src/full-codegen/s390/full-codegen-s390.cc
|
| @@ -1948,7 +1948,7 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
|
|
|
| void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| for (int i = 0; i < lit->properties()->length(); i++) {
|
| - ObjectLiteral::Property* property = lit->properties()->at(i);
|
| + ClassLiteral::Property* property = lit->properties()->at(i);
|
| Expression* value = property->value();
|
|
|
| Register scratch = r3;
|
| @@ -1975,22 +1975,18 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| }
|
|
|
| switch (property->kind()) {
|
| - case ObjectLiteral::Property::CONSTANT:
|
| - case ObjectLiteral::Property::MATERIALIZED_LITERAL:
|
| - case ObjectLiteral::Property::PROTOTYPE:
|
| - UNREACHABLE();
|
| - case ObjectLiteral::Property::COMPUTED:
|
| + case ClassLiteral::Property::METHOD:
|
| PushOperand(Smi::FromInt(DONT_ENUM));
|
| PushOperand(Smi::FromInt(property->NeedsSetFunctionName()));
|
| CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral);
|
| break;
|
|
|
| - case ObjectLiteral::Property::GETTER:
|
| + case ClassLiteral::Property::GETTER:
|
| PushOperand(Smi::FromInt(DONT_ENUM));
|
| CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
|
| break;
|
|
|
| - case ObjectLiteral::Property::SETTER:
|
| + case ClassLiteral::Property::SETTER:
|
| PushOperand(Smi::FromInt(DONT_ENUM));
|
| CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
|
| break;
|
|
|