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 ab1d17fa4f5af5b53f95ee493d9bf533b50182bf..20143f6779ba0417ca66c6be3475a570e2cf7afe 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1133,12 +1133,9 @@ |
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)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
} |
@@ -1147,12 +1144,9 @@ |
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)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
} |
@@ -1387,10 +1381,8 @@ |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(r3)); |
- __ mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
__ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
- EmitLoadStoreICSlot(property->GetSlot(0)); |
- CallStoreIC(); |
+ CallStoreIC(property->GetSlot(0), key->value()); |
PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); |
if (NeedsHomeObject(value)) { |
@@ -1586,8 +1578,7 @@ |
__ LoadSmiLiteral(StoreDescriptor::NameRegister(), |
Smi::FromInt(array_index)); |
__ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
- EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->LiteralFeedbackSlot()); |
PrepareForBailoutForId(expr->GetIdForElement(array_index), |
BailoutState::NO_REGISTERS); |
@@ -2063,10 +2054,7 @@ |
VisitForAccumulatorValue(prop->obj()); |
__ Move(StoreDescriptor::ReceiverRegister(), r3); |
PopOperand(StoreDescriptor::ValueRegister()); // Restore value. |
- __ mov(StoreDescriptor::NameRegister(), |
- Operand(prop->key()->AsLiteral()->value())); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, prop->key()->AsLiteral()->value()); |
break; |
} |
case NAMED_SUPER_PROPERTY: { |
@@ -2113,8 +2101,7 @@ |
__ Move(StoreDescriptor::NameRegister(), r3); |
PopOperands(StoreDescriptor::ValueRegister(), |
StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(slot); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(slot); |
break; |
} |
} |
@@ -2139,10 +2126,8 @@ |
FeedbackVectorSlot slot) { |
if (var->IsUnallocated()) { |
// Global var, const, or let. |
- __ mov(StoreDescriptor::NameRegister(), Operand(var->name())); |
__ LoadGlobalObject(StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, var->name()); |
} else if (IsLexicalVariableMode(var->mode()) && op != Token::INIT) { |
DCHECK(!var->IsLookupSlot()); |
@@ -2210,11 +2195,8 @@ |
DCHECK(prop != NULL); |
DCHECK(prop->key()->IsLiteral()); |
- __ mov(StoreDescriptor::NameRegister(), |
- Operand(prop->key()->AsLiteral()->value())); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(expr->AssignmentSlot()); |
- CallStoreIC(); |
+ CallStoreIC(expr->AssignmentSlot(), prop->key()->AsLiteral()->value()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(r3); |
@@ -2256,8 +2238,7 @@ |
StoreDescriptor::NameRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(r3)); |
- EmitLoadStoreICSlot(expr->AssignmentSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->AssignmentSlot()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(r3); |
@@ -3301,11 +3282,8 @@ |
} |
break; |
case NAMED_PROPERTY: { |
- __ mov(StoreDescriptor::NameRegister(), |
- Operand(prop->key()->AsLiteral()->value())); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(expr->CountSlot()); |
- CallStoreIC(); |
+ CallStoreIC(expr->CountSlot(), prop->key()->AsLiteral()->value()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
if (!context()->IsEffect()) { |
@@ -3343,8 +3321,7 @@ |
case KEYED_PROPERTY: { |
PopOperands(StoreDescriptor::ReceiverRegister(), |
StoreDescriptor::NameRegister()); |
- EmitLoadStoreICSlot(expr->CountSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->CountSlot()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
if (!context()->IsEffect()) { |