Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 20143f6779ba0417ca66c6be3475a570e2cf7afe..ab1d17fa4f5af5b53f95ee493d9bf533b50182bf 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1133,9 +1133,12 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
+ __ mov(StoreDescriptor::NameRegister(), |
+ Operand(isolate()->factory()->home_object_symbol())); |
__ LoadP(StoreDescriptor::ValueRegister(), |
MemOperand(sp, offset * kPointerSize)); |
- CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
} |
@@ -1144,9 +1147,12 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ Move(StoreDescriptor::ReceiverRegister(), r3); |
+ __ mov(StoreDescriptor::NameRegister(), |
+ Operand(isolate()->factory()->home_object_symbol())); |
__ LoadP(StoreDescriptor::ValueRegister(), |
MemOperand(sp, offset * kPointerSize)); |
- CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
+ EmitLoadStoreICSlot(slot); |
+ CallStoreIC(); |
} |
@@ -1381,8 +1387,10 @@ |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(r3)); |
+ __ mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
__ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
- CallStoreIC(property->GetSlot(0), key->value()); |
+ EmitLoadStoreICSlot(property->GetSlot(0)); |
+ CallStoreIC(); |
PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); |
if (NeedsHomeObject(value)) { |
@@ -1578,7 +1586,8 @@ |
__ LoadSmiLiteral(StoreDescriptor::NameRegister(), |
Smi::FromInt(array_index)); |
__ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
- CallKeyedStoreIC(expr->LiteralFeedbackSlot()); |
+ EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->GetIdForElement(array_index), |
BailoutState::NO_REGISTERS); |
@@ -2054,7 +2063,10 @@ |
VisitForAccumulatorValue(prop->obj()); |
__ Move(StoreDescriptor::ReceiverRegister(), r3); |
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: { |
@@ -2101,7 +2113,8 @@ |
__ Move(StoreDescriptor::NameRegister(), r3); |
PopOperands(StoreDescriptor::ValueRegister(), |
StoreDescriptor::ReceiverRegister()); |
- CallKeyedStoreIC(slot); |
+ EmitLoadStoreICSlot(slot); |
+ CallKeyedStoreIC(); |
break; |
} |
} |
@@ -2126,8 +2139,10 @@ |
FeedbackVectorSlot slot) { |
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()); |
@@ -2195,8 +2210,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(r3); |
@@ -2238,7 +2256,8 @@ |
StoreDescriptor::NameRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(r3)); |
- CallKeyedStoreIC(expr->AssignmentSlot()); |
+ EmitLoadStoreICSlot(expr->AssignmentSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(r3); |
@@ -3282,8 +3301,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()) { |
@@ -3321,7 +3343,8 @@ |
case KEYED_PROPERTY: { |
PopOperands(StoreDescriptor::ReceiverRegister(), |
StoreDescriptor::NameRegister()); |
- CallKeyedStoreIC(expr->CountSlot()); |
+ EmitLoadStoreICSlot(expr->CountSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
if (!context()->IsEffect()) { |