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 ce61808d3c706221242fc555e88f41fa3b50005c..530d2bdeacf41e7900206baf7d13a32c59b50dff 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1158,8 +1158,11 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ Peek(StoreDescriptor::ReceiverRegister(), 0); |
+ __ Mov(StoreDescriptor::NameRegister(), |
+ Operand(isolate()->factory()->home_object_symbol())); |
__ Peek(StoreDescriptor::ValueRegister(), offset * kPointerSize); |
- CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
} |
@@ -1168,8 +1171,11 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ Move(StoreDescriptor::ReceiverRegister(), x0); |
+ __ Mov(StoreDescriptor::NameRegister(), |
+ Operand(isolate()->factory()->home_object_symbol())); |
__ Peek(StoreDescriptor::ValueRegister(), offset * kPointerSize); |
- CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
} |
@@ -1403,8 +1409,10 @@ |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(x0)); |
+ __ Mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
__ Peek(StoreDescriptor::ReceiverRegister(), 0); |
- CallStoreIC(property->GetSlot(0), key->value()); |
+ EmitLoadStoreICSlot(property->GetSlot(0)); |
+ CallStoreIC(); |
PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); |
if (NeedsHomeObject(value)) { |
@@ -1598,7 +1606,8 @@ |
__ Mov(StoreDescriptor::NameRegister(), Smi::FromInt(array_index)); |
__ Peek(StoreDescriptor::ReceiverRegister(), 0); |
- CallKeyedStoreIC(expr->LiteralFeedbackSlot()); |
+ EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->GetIdForElement(array_index), |
BailoutState::NO_REGISTERS); |
@@ -1940,7 +1949,10 @@ |
// this copy. |
__ Mov(StoreDescriptor::ReceiverRegister(), x0); |
PopOperand(StoreDescriptor::ValueRegister()); // Restore value. |
- CallStoreIC(slot, prop->key()->AsLiteral()->value()); |
+ __ Mov(StoreDescriptor::NameRegister(), |
+ Operand(prop->key()->AsLiteral()->value())); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
break; |
} |
case NAMED_SUPER_PROPERTY: { |
@@ -1987,7 +1999,8 @@ |
__ Mov(StoreDescriptor::NameRegister(), x0); |
PopOperands(StoreDescriptor::ReceiverRegister(), |
StoreDescriptor::ValueRegister()); |
- CallKeyedStoreIC(slot); |
+ EmitLoadStoreICSlot(slot); |
+ CallKeyedStoreIC(); |
break; |
} |
} |
@@ -2013,8 +2026,10 @@ |
ASM_LOCATION("FullCodeGenerator::EmitVariableAssignment"); |
if (var->IsUnallocated()) { |
// Global var, const, or let. |
+ __ Mov(StoreDescriptor::NameRegister(), Operand(var->name())); |
__ LoadGlobalObject(StoreDescriptor::ReceiverRegister()); |
- CallStoreIC(slot, var->name()); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
} else if (IsLexicalVariableMode(var->mode()) && op != Token::INIT) { |
DCHECK(!var->IsLookupSlot()); |
@@ -2080,8 +2095,11 @@ |
DCHECK(prop != NULL); |
DCHECK(prop->key()->IsLiteral()); |
+ __ Mov(StoreDescriptor::NameRegister(), |
+ Operand(prop->key()->AsLiteral()->value())); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- CallStoreIC(expr->AssignmentSlot(), prop->key()->AsLiteral()->value()); |
+ EmitLoadStoreICSlot(expr->AssignmentSlot()); |
+ CallStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(x0); |
@@ -2126,7 +2144,8 @@ |
StoreDescriptor::ReceiverRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(x0)); |
- CallKeyedStoreIC(expr->AssignmentSlot()); |
+ EmitLoadStoreICSlot(expr->AssignmentSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(x0); |
@@ -3207,8 +3226,11 @@ |
} |
break; |
case NAMED_PROPERTY: { |
+ __ Mov(StoreDescriptor::NameRegister(), |
+ Operand(prop->key()->AsLiteral()->value())); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- CallStoreIC(expr->CountSlot(), prop->key()->AsLiteral()->value()); |
+ EmitLoadStoreICSlot(expr->CountSlot()); |
+ CallStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
if (!context()->IsEffect()) { |
@@ -3246,7 +3268,8 @@ |
case KEYED_PROPERTY: { |
PopOperand(StoreDescriptor::NameRegister()); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- CallKeyedStoreIC(expr->CountSlot()); |
+ EmitLoadStoreICSlot(expr->CountSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
if (!context()->IsEffect()) { |