Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 34a23e11f16a1d91aaff0731d641771a1d24ec16..13dd7b70742bc728f1c195a1d52921394884f8bf 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -4191,11 +4191,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->object()).is(r1)); |
- ASSERT(ToRegister(instr->value()).is(r0)); |
+ ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister())); |
+ ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister())); |
- // Name is always in r2. |
- __ mov(r2, Operand(instr->name())); |
+ __ mov(StoreIC::NameRegister(), Operand(instr->name())); |
Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); |
CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS); |
} |
@@ -4413,9 +4412,9 @@ void LCodeGen::DoStoreKeyed(LStoreKeyed* instr) { |
void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->object()).is(r2)); |
- ASSERT(ToRegister(instr->key()).is(r1)); |
- ASSERT(ToRegister(instr->value()).is(r0)); |
+ 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() |