Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 71dedb371e4d7a5da303e63431cc2473b523e87b..f12656b9d26d61fa57ca20cc7d2f1bcfa72d2e91 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1633,9 +1633,9 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
case ObjectLiteral::Property::COMPUTED: |
if (property->emit_store()) { |
- __ Mov(x0, Smi::FromInt(NONE)); |
- __ Push(x0); |
- __ CallRuntime(Runtime::kDefineDataPropertyUnchecked); |
+ __ Push(Smi::FromInt(NONE)); |
+ __ Push(Smi::FromInt(property->NeedsSetFunctionName())); |
+ __ CallRuntime(Runtime::kDefineDataPropertyInLiteral); |
} else { |
__ Drop(3); |
} |
@@ -1646,14 +1646,12 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
break; |
case ObjectLiteral::Property::GETTER: |
- __ Mov(x0, Smi::FromInt(NONE)); |
- __ Push(x0); |
+ __ Push(Smi::FromInt(NONE)); |
__ CallRuntime(Runtime::kDefineGetterPropertyUnchecked); |
break; |
case ObjectLiteral::Property::SETTER: |
- __ Mov(x0, Smi::FromInt(NONE)); |
- __ Push(x0); |
+ __ Push(Smi::FromInt(NONE)); |
__ CallRuntime(Runtime::kDefineSetterPropertyUnchecked); |
break; |
} |
@@ -2101,18 +2099,18 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
case ObjectLiteral::Property::PROTOTYPE: |
UNREACHABLE(); |
case ObjectLiteral::Property::COMPUTED: |
- __ CallRuntime(Runtime::kDefineClassMethod); |
+ __ Push(Smi::FromInt(DONT_ENUM)); |
+ __ Push(Smi::FromInt(property->NeedsSetFunctionName())); |
+ __ CallRuntime(Runtime::kDefineDataPropertyInLiteral); |
break; |
case ObjectLiteral::Property::GETTER: |
- __ Mov(x0, Smi::FromInt(DONT_ENUM)); |
- __ Push(x0); |
+ __ Push(Smi::FromInt(DONT_ENUM)); |
__ CallRuntime(Runtime::kDefineGetterPropertyUnchecked); |
break; |
case ObjectLiteral::Property::SETTER: |
- __ Mov(x0, Smi::FromInt(DONT_ENUM)); |
- __ Push(x0); |
+ __ Push(Smi::FromInt(DONT_ENUM)); |
__ CallRuntime(Runtime::kDefineSetterPropertyUnchecked); |
break; |