Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index dd24b9c65eba5a3b09eb3c77c81433be0129c141..46d88e50692c55a186c4fa3d8a28ce55911f284b 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -5322,9 +5322,9 @@ void LCodeGen::DoStoreKeyedFixed(LStoreKeyedFixed* instr) { |
void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->object()).Is(x2)); |
- ASSERT(ToRegister(instr->key()).Is(x1)); |
- ASSERT(ToRegister(instr->value()).Is(x0)); |
+ 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() |
@@ -5429,11 +5429,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
ASSERT(ToRegister(instr->context()).is(cp)); |
- ASSERT(ToRegister(instr->value()).is(x0)); |
- ASSERT(ToRegister(instr->object()).is(x1)); |
+ ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister())); |
+ ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister())); |
- // Name must be in x2. |
- __ Mov(x2, 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); |
} |