Index: src/arm64/ic-arm64.cc |
diff --git a/src/arm64/ic-arm64.cc b/src/arm64/ic-arm64.cc |
index 51fa354d08ccc2c753079e5893ad60c463ed2d13..1607e5fb22d631b8d99eafd3706f33b396af4499 100644 |
--- a/src/arm64/ic-arm64.cc |
+++ b/src/arm64/ic-arm64.cc |
@@ -506,8 +506,8 @@ void KeyedStoreIC::GenerateSloppyArguments(MacroAssembler* masm) { |
Register value = ValueRegister(); |
Register key = NameRegister(); |
Register receiver = ReceiverRegister(); |
- ASSERT(receiver.is(x2)); |
- ASSERT(key.is(x1)); |
+ ASSERT(receiver.is(x1)); |
+ ASSERT(key.is(x2)); |
ASSERT(value.is(x0)); |
Register map = x3; |
@@ -574,9 +574,24 @@ const Register StoreIC::NameRegister() { return x2; } |
const Register StoreIC::ValueRegister() { return x0; } |
-const Register KeyedStoreIC::ReceiverRegister() { return x2; } |
-const Register KeyedStoreIC::NameRegister() { return x1; } |
-const Register KeyedStoreIC::ValueRegister() { return x0; } |
+const Register KeyedStoreIC::ReceiverRegister() { |
+ return StoreIC::ReceiverRegister(); |
+} |
+ |
+ |
+const Register KeyedStoreIC::NameRegister() { |
+ return StoreIC::NameRegister(); |
+} |
+ |
+ |
+const Register KeyedStoreIC::ValueRegister() { |
+ return StoreIC::ValueRegister(); |
+} |
+ |
+ |
+const Register KeyedStoreIC::MapRegister() { |
+ return x3; |
+} |
void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
@@ -1068,8 +1083,8 @@ void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm, |
Register value = ValueRegister(); |
Register key = NameRegister(); |
Register receiver = ReceiverRegister(); |
- ASSERT(receiver.is(x2)); |
- ASSERT(key.is(x1)); |
+ ASSERT(receiver.is(x1)); |
+ ASSERT(key.is(x2)); |
ASSERT(value.is(x0)); |
Register receiver_map = x3; |