Index: src/full-codegen/s390/full-codegen-s390.cc |
diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc |
index 3e70cb3e32b2961144e8b0b78e46adb2b507c5bd..9e6dccda4c12f5ed117f687a1439186e619c1b5e 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -1101,9 +1101,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(); |
} |
void FullCodeGenerator::EmitSetHomeObjectAccumulator(Expression* initializer, |
@@ -1111,9 +1114,12 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ Move(StoreDescriptor::ReceiverRegister(), r2); |
+ __ 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(); |
} |
void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
@@ -1341,8 +1347,10 @@ |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
+ __ 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)) { |
@@ -1537,7 +1545,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); |
@@ -2009,7 +2018,10 @@ |
VisitForAccumulatorValue(prop->obj()); |
__ Move(StoreDescriptor::ReceiverRegister(), r2); |
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: { |
@@ -2056,7 +2068,8 @@ |
__ Move(StoreDescriptor::NameRegister(), r2); |
PopOperands(StoreDescriptor::ValueRegister(), |
StoreDescriptor::ReceiverRegister()); |
- CallKeyedStoreIC(slot); |
+ EmitLoadStoreICSlot(slot); |
+ CallKeyedStoreIC(); |
break; |
} |
} |
@@ -2079,8 +2092,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) { |
// Non-initializing assignment to let variable needs a write barrier. |
@@ -2147,8 +2162,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(r2); |
@@ -2187,7 +2205,8 @@ |
StoreDescriptor::NameRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
- CallKeyedStoreIC(expr->AssignmentSlot()); |
+ EmitLoadStoreICSlot(expr->AssignmentSlot()); |
+ CallKeyedStoreIC(); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(r2); |
@@ -3200,8 +3219,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()) { |
@@ -3239,7 +3261,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()) { |