| 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 3a53bb2068db57bfe54b7c249c715662076bc80e..a279000e6ee87a1698eb993461c8c24f4b955956 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1789,60 +1789,6 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
|
| context()->Plug(v0);
|
| }
|
|
|
| -
|
| -void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| - for (int i = 0; i < lit->properties()->length(); i++) {
|
| - ClassLiteral::Property* property = lit->properties()->at(i);
|
| - Expression* value = property->value();
|
| -
|
| - Register scratch = a1;
|
| - if (property->is_static()) {
|
| - __ lw(scratch, MemOperand(sp, kPointerSize)); // constructor
|
| - } else {
|
| - __ lw(scratch, MemOperand(sp, 0)); // prototype
|
| - }
|
| - PushOperand(scratch);
|
| - EmitPropertyKey(property, lit->GetIdForProperty(i));
|
| -
|
| - // The static prototype property is read only. We handle the non computed
|
| - // property name case in the parser. Since this is the only case where we
|
| - // need to check for an own read only property we special case this so we do
|
| - // not need to do this for every property.
|
| - if (property->is_static() && property->is_computed_name()) {
|
| - __ CallRuntime(Runtime::kThrowIfStaticPrototype);
|
| - __ push(v0);
|
| - }
|
| -
|
| - VisitForStackValue(value);
|
| - if (NeedsHomeObject(value)) {
|
| - EmitSetHomeObject(value, 2, property->GetSlot());
|
| - }
|
| -
|
| - switch (property->kind()) {
|
| - case ClassLiteral::Property::METHOD:
|
| - PushOperand(Smi::FromInt(DONT_ENUM));
|
| - PushOperand(Smi::FromInt(property->NeedsSetFunctionName()));
|
| - CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral);
|
| - break;
|
| -
|
| - case ClassLiteral::Property::GETTER:
|
| - PushOperand(Smi::FromInt(DONT_ENUM));
|
| - CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
|
| - break;
|
| -
|
| - case ClassLiteral::Property::SETTER:
|
| - PushOperand(Smi::FromInt(DONT_ENUM));
|
| - CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
|
| - break;
|
| -
|
| - case ClassLiteral::Property::FIELD:
|
| - default:
|
| - UNREACHABLE();
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) {
|
| __ mov(a0, result_register());
|
| PopOperand(a1);
|
|
|