Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index e2064daaec0046d9904fb6a22588929fe7b790b2..f459b87ec3bf8002ea6e0374dfd1278d7e3df7bc 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -2507,34 +2507,22 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
} |
__ push(scratch); |
VisitForStackValue(key); |
+ VisitForStackValue(value); |
switch (property->kind()) { |
case ObjectLiteral::Property::CONSTANT: |
case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
case ObjectLiteral::Property::COMPUTED: |
case ObjectLiteral::Property::PROTOTYPE: |
- VisitForStackValue(value); |
- __ li(scratch, Operand(Smi::FromInt(NONE))); |
- __ push(scratch); |
- __ CallRuntime(Runtime::kDefineDataPropertyUnchecked, 4); |
+ __ CallRuntime(Runtime::kDefineClassMethod, 3); |
break; |
case ObjectLiteral::Property::GETTER: |
- VisitForStackValue(value); |
- __ LoadRoot(scratch, Heap::kNullValueRootIndex); |
- __ push(scratch); |
- __ li(scratch, Operand(Smi::FromInt(NONE))); |
- __ push(scratch); |
- __ CallRuntime(Runtime::kDefineAccessorPropertyUnchecked, 5); |
+ __ CallRuntime(Runtime::kDefineClassGetter, 3); |
break; |
case ObjectLiteral::Property::SETTER: |
- __ LoadRoot(scratch, Heap::kNullValueRootIndex); |
- __ push(scratch); |
- VisitForStackValue(value); |
- __ li(scratch, Operand(Smi::FromInt(NONE))); |
- __ push(scratch); |
- __ CallRuntime(Runtime::kDefineAccessorPropertyUnchecked, 5); |
+ __ CallRuntime(Runtime::kDefineClassSetter, 3); |
break; |
default: |