Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index defc63a40fe9d6f5c6a032a621a8aa08ba0946e4..7f7799920d83b96240cdad4cd366d9115966a1f9 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1986,7 +1986,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 = a1; |
@@ -2013,22 +2013,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; |