| Index: src/x87/lithium-codegen-x87.cc
|
| diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc
|
| index 72249892406ba8de0bd2d8048f3229cb282a1b09..561a8f6c5bd9d32cb44b368bfd122bf9ad59bf49 100644
|
| --- a/src/x87/lithium-codegen-x87.cc
|
| +++ b/src/x87/lithium-codegen-x87.cc
|
| @@ -3964,10 +3964,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
|
|
|
| void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| - ASSERT(ToRegister(instr->object()).is(edx));
|
| - ASSERT(ToRegister(instr->value()).is(eax));
|
| + ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister()));
|
| + ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister()));
|
|
|
| - __ mov(ecx, instr->name());
|
| + __ mov(StoreIC::NameRegister(), instr->name());
|
| Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode());
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| }
|
| @@ -4175,9 +4175,9 @@ void LCodeGen::DoStoreKeyed(LStoreKeyed* instr) {
|
|
|
| void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| - ASSERT(ToRegister(instr->object()).is(edx));
|
| - ASSERT(ToRegister(instr->key()).is(ecx));
|
| - ASSERT(ToRegister(instr->value()).is(eax));
|
| + ASSERT(ToRegister(instr->object()).is(KeyedStoreIC::ReceiverRegister()));
|
| + ASSERT(ToRegister(instr->key()).is(KeyedStoreIC::NameRegister()));
|
| + ASSERT(ToRegister(instr->value()).is(KeyedStoreIC::ValueRegister()));
|
|
|
| Handle<Code> ic = instr->strict_mode() == STRICT
|
| ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
|
|
|