Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 2488b4dd7cbbe6022c70de8a0a9f2bdce902c6fd..2302bb1af5e6b8cca2a1f594bc8b99b77bf6e000 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1886,7 +1886,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()) { |
@@ -1911,22 +1911,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; |