| 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 8cdd1c7c33978252dd61dd82130e34795102bd60..f9711f372cc1c4173b2bb12b7d1426600adb65d9 100644
|
| --- a/src/full-codegen/ia32/full-codegen-ia32.cc
|
| +++ b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| @@ -1894,7 +1894,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();
|
|
|
| if (property->is_static()) {
|
| @@ -1919,22 +1919,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;
|
|
|