| 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 2f5154cb5ea7e61e60f42d24157a32a89728ffdb..a82522aa15dc026d06f5686c560a136954e69259 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1648,7 +1648,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| if (property->emit_store()) {
|
| __ li(a0, Operand(Smi::FromInt(NONE)));
|
| __ push(a0);
|
| - __ CallRuntime(Runtime::kDefineDataPropertyUnchecked);
|
| + __ Push(Smi::FromInt(property->NeedsSetFunctionName()));
|
| + __ CallRuntime(Runtime::kDefineDataPropertyInLiteral);
|
| } else {
|
| __ Drop(3);
|
| }
|
| @@ -2383,7 +2384,10 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| case ObjectLiteral::Property::PROTOTYPE:
|
| UNREACHABLE();
|
| case ObjectLiteral::Property::COMPUTED:
|
| - __ CallRuntime(Runtime::kDefineClassMethod);
|
| + __ li(a0, Operand(Smi::FromInt(DONT_ENUM)));
|
| + __ push(a0);
|
| + __ Push(Smi::FromInt(property->NeedsSetFunctionName()));
|
| + __ CallRuntime(Runtime::kDefineDataPropertyInLiteral);
|
| break;
|
|
|
| case ObjectLiteral::Property::GETTER:
|
|
|