Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 247572abc2eb75b48030069a8e8cdbe4f03d3544..95f68478c7d1b18ec9b0943d3391e5e4b64fac8d 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -4131,11 +4131,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->object()).is(a1)); |
- ASSERT(ToRegister(instr->value()).is(a0)); |
+ ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister())); |
+ ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister())); |
- // Name is always in a2. |
- __ li(a2, Operand(instr->name())); |
+ __ li(StoreIC::NameRegister(), Operand(instr->name())); |
Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -4363,9 +4362,9 @@ void LCodeGen::DoStoreKeyed(LStoreKeyed* instr) { |
void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->object()).is(a2)); |
- ASSERT(ToRegister(instr->key()).is(a1)); |
- ASSERT(ToRegister(instr->value()).is(a0)); |
+ 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() |