Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 28164bd80acd403a2c24b1f99a441069aa17e107..e7e6aa0fe29a054cc99f58df538b01b783c11858 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1092,11 +1092,8 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ mov(StoreDescriptor::ReceiverRegister(), Operand(esp, 0)); |
- __ mov(StoreDescriptor::NameRegister(), |
- Immediate(isolate()->factory()->home_object_symbol())); |
__ mov(StoreDescriptor::ValueRegister(), Operand(esp, offset * kPointerSize)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
} |
@@ -1105,11 +1102,8 @@ |
FeedbackVectorSlot slot) { |
DCHECK(NeedsHomeObject(initializer)); |
__ mov(StoreDescriptor::ReceiverRegister(), eax); |
- __ mov(StoreDescriptor::NameRegister(), |
- Immediate(isolate()->factory()->home_object_symbol())); |
__ mov(StoreDescriptor::ValueRegister(), Operand(esp, offset * kPointerSize)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, isolate()->factory()->home_object_symbol()); |
} |
@@ -1344,10 +1338,8 @@ |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(eax)); |
- __ mov(StoreDescriptor::NameRegister(), Immediate(key->value())); |
__ mov(StoreDescriptor::ReceiverRegister(), Operand(esp, 0)); |
- EmitLoadStoreICSlot(property->GetSlot(0)); |
- CallStoreIC(); |
+ CallStoreIC(property->GetSlot(0), key->value()); |
PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); |
if (NeedsHomeObject(value)) { |
EmitSetHomeObjectAccumulator(value, 0, property->GetSlot(1)); |
@@ -1538,8 +1530,7 @@ |
__ mov(StoreDescriptor::NameRegister(), |
Immediate(Smi::FromInt(array_index))); |
__ mov(StoreDescriptor::ReceiverRegister(), Operand(esp, 0)); |
- EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->LiteralFeedbackSlot()); |
PrepareForBailoutForId(expr->GetIdForElement(array_index), |
BailoutState::NO_REGISTERS); |
} |
@@ -1962,10 +1953,7 @@ |
VisitForAccumulatorValue(prop->obj()); |
__ Move(StoreDescriptor::ReceiverRegister(), eax); |
PopOperand(StoreDescriptor::ValueRegister()); // Restore value. |
- __ mov(StoreDescriptor::NameRegister(), |
- prop->key()->AsLiteral()->value()); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, prop->key()->AsLiteral()->value()); |
break; |
} |
case NAMED_SUPER_PROPERTY: { |
@@ -2012,8 +2000,7 @@ |
__ Move(StoreDescriptor::NameRegister(), eax); |
PopOperand(StoreDescriptor::ReceiverRegister()); // Receiver. |
PopOperand(StoreDescriptor::ValueRegister()); // Restore value. |
- EmitLoadStoreICSlot(slot); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(slot); |
break; |
} |
} |
@@ -2036,13 +2023,11 @@ |
FeedbackVectorSlot slot) { |
if (var->IsUnallocated()) { |
// Global var, const, or let. |
- __ mov(StoreDescriptor::NameRegister(), var->name()); |
__ mov(StoreDescriptor::ReceiverRegister(), NativeContextOperand()); |
__ mov(StoreDescriptor::ReceiverRegister(), |
ContextOperand(StoreDescriptor::ReceiverRegister(), |
Context::EXTENSION_INDEX)); |
- EmitLoadStoreICSlot(slot); |
- CallStoreIC(); |
+ CallStoreIC(slot, var->name()); |
} else if (IsLexicalVariableMode(var->mode()) && op != Token::INIT) { |
DCHECK(!var->IsLookupSlot()); |
@@ -2110,10 +2095,8 @@ |
DCHECK(prop != NULL); |
DCHECK(prop->key()->IsLiteral()); |
- __ mov(StoreDescriptor::NameRegister(), 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(eax); |
} |
@@ -2156,8 +2139,7 @@ |
PopOperand(StoreDescriptor::NameRegister()); // Key. |
PopOperand(StoreDescriptor::ReceiverRegister()); |
DCHECK(StoreDescriptor::ValueRegister().is(eax)); |
- EmitLoadStoreICSlot(expr->AssignmentSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->AssignmentSlot()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
context()->Plug(eax); |
} |
@@ -3202,11 +3184,8 @@ |
} |
break; |
case NAMED_PROPERTY: { |
- __ mov(StoreDescriptor::NameRegister(), |
- 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()) { |
@@ -3244,8 +3223,7 @@ |
case KEYED_PROPERTY: { |
PopOperand(StoreDescriptor::NameRegister()); |
PopOperand(StoreDescriptor::ReceiverRegister()); |
- EmitLoadStoreICSlot(expr->CountSlot()); |
- CallKeyedStoreIC(); |
+ CallKeyedStoreIC(expr->CountSlot()); |
PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
if (expr->is_postfix()) { |
// Result is on the stack |