Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index e653326428e49f28a6e827b9a084b171ca4e440a..746119d04b6e4fd197b7201d0c4645a9c211ef1d 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.cc |
@@ -2504,34 +2504,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: |