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 9e6dccda4c12f5ed117f687a1439186e619c1b5e..3e70cb3e32b2961144e8b0b78e46adb2b507c5bd 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -1101,12 +1101,9 @@ void FullCodeGenerator::EmitSetHomeObject(Expression* initializer, int offset, |
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()); |
} |
void FullCodeGenerator::EmitSetHomeObjectAccumulator(Expression* initializer, |
@@ -1114,12 +1111,9 @@ void FullCodeGenerator::EmitSetHomeObjectAccumulator(Expression* initializer, |
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)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
} |
void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
@@ -1347,10 +1341,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
- __ 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)) { |
@@ -1545,8 +1537,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ 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); |
@@ -2018,10 +2009,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
VisitForAccumulatorValue(prop->obj()); |
__ Move(StoreDescriptor::ReceiverRegister(), r2); |
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: { |
@@ -2068,8 +2056,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
__ Move(StoreDescriptor::NameRegister(), r2); |
PopOperands(StoreDescriptor::ValueRegister(), |
StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(slot); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(slot); |
break; |
} |
} |
@@ -2092,10 +2079,8 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
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) { |
// Non-initializing assignment to let variable needs a write barrier. |
@@ -2162,11 +2147,8 @@ void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
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(r2); |
@@ -2205,8 +2187,7 @@ void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
StoreDescriptor::NameRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
- EmitLoadStoreICSlot(expr->AssignmentSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->AssignmentSlot()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(r2); |
@@ -3219,11 +3200,8 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
} |
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()) { |
@@ -3261,8 +3239,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
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()) { |