| Index: src/x87/lithium-codegen-x87.cc
|
| diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc
|
| index b04d6d9fa52d7462a155c2e4089439920ac728c7..0fa31f5c02101e3a52b517b79124e9d639304e7b 100644
|
| --- a/src/x87/lithium-codegen-x87.cc
|
| +++ b/src/x87/lithium-codegen-x87.cc
|
| @@ -2967,10 +2967,10 @@ void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
|
|
|
| void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| - ASSERT(ToRegister(instr->global_object()).is(edx));
|
| + ASSERT(ToRegister(instr->global_object()).is(LoadIC::ReceiverRegister()));
|
| ASSERT(ToRegister(instr->result()).is(eax));
|
|
|
| - __ mov(ecx, instr->name());
|
| + __ mov(LoadIC::NameRegister(), instr->name());
|
| ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
|
| Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| @@ -3099,10 +3099,10 @@ void LCodeGen::EmitPushTaggedOperand(LOperand* operand) {
|
|
|
| void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| - ASSERT(ToRegister(instr->object()).is(edx));
|
| + ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister()));
|
| ASSERT(ToRegister(instr->result()).is(eax));
|
|
|
| - __ mov(ecx, instr->name());
|
| + __ mov(LoadIC::NameRegister(), instr->name());
|
| Handle<Code> ic = LoadIC::initialize_stub(isolate(), NOT_CONTEXTUAL);
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| }
|
| @@ -3337,8 +3337,8 @@ Operand LCodeGen::BuildFastArrayOperand(
|
|
|
| void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| - ASSERT(ToRegister(instr->object()).is(edx));
|
| - ASSERT(ToRegister(instr->key()).is(ecx));
|
| + ASSERT(ToRegister(instr->object()).is(KeyedLoadIC::ReceiverRegister()));
|
| + ASSERT(ToRegister(instr->key()).is(KeyedLoadIC::NameRegister()));
|
|
|
| Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
|
|