Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 96911e274427bd80bc83430cc9aaf67cda9ad67e..e3a6b4b84c70fcb362b16fbb8a643fad60cb2110 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1988,7 +1988,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 = r4; |
@@ -2015,22 +2015,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; |