| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index dd2d67e3fddef0670c68979926377d873df18828..d82033f875c6f3f63e6368caeee418cc6cf7daf8 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -2880,10 +2880,10 @@ void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
|
|
|
| void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(cp));
|
| - ASSERT(ToRegister(instr->global_object()).is(a0));
|
| + ASSERT(ToRegister(instr->global_object()).is(LoadIC::ReceiverRegister()));
|
| ASSERT(ToRegister(instr->result()).is(v0));
|
|
|
| - __ li(a2, Operand(instr->name()));
|
| + __ li(LoadIC::NameRegister(), Operand(instr->name()));
|
| ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
|
| Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| @@ -3004,11 +3004,11 @@ void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
|
|
|
| void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(cp));
|
| - ASSERT(ToRegister(instr->object()).is(a0));
|
| + ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister()));
|
| ASSERT(ToRegister(instr->result()).is(v0));
|
|
|
| // Name is always in a2.
|
| - __ li(a2, Operand(instr->name()));
|
| + __ li(LoadIC::NameRegister(), Operand(instr->name()));
|
| Handle<Code> ic = LoadIC::initialize_stub(isolate(), NOT_CONTEXTUAL);
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| }
|
| @@ -3327,8 +3327,8 @@ MemOperand LCodeGen::PrepareKeyedOperand(Register key,
|
|
|
| void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
|
| ASSERT(ToRegister(instr->context()).is(cp));
|
| - ASSERT(ToRegister(instr->object()).is(a1));
|
| - ASSERT(ToRegister(instr->key()).is(a0));
|
| + 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);
|
|
|