Index: src/arm/ic-arm.cc |
diff --git a/src/arm/ic-arm.cc b/src/arm/ic-arm.cc |
index 7b85f43be6eb7e5614308dfa80b5421d0db68867..c49b161036a01b7d9f8c5630629a7e7211cff3c0 100644 |
--- a/src/arm/ic-arm.cc |
+++ b/src/arm/ic-arm.cc |
@@ -500,8 +500,8 @@ void KeyedStoreIC::GenerateSloppyArguments(MacroAssembler* masm) { |
Register receiver = ReceiverRegister(); |
Register key = NameRegister(); |
Register value = ValueRegister(); |
- ASSERT(receiver.is(r1)); |
- ASSERT(key.is(r2)); |
+ ASSERT(receiver.is(r2)); |
+ ASSERT(key.is(r1)); |
ASSERT(value.is(r0)); |
Label slow, notin; |
@@ -552,24 +552,9 @@ const Register StoreIC::NameRegister() { return r2; } |
const Register StoreIC::ValueRegister() { return r0; } |
-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 r3; |
-} |
+const Register KeyedStoreIC::ReceiverRegister() { return r2; } |
+const Register KeyedStoreIC::NameRegister() { return r1; } |
+const Register KeyedStoreIC::ValueRegister() { return r0; } |
void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
@@ -1043,8 +1028,8 @@ void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm, |
Register value = ValueRegister(); |
Register key = NameRegister(); |
Register receiver = ReceiverRegister(); |
- ASSERT(receiver.is(r1)); |
- ASSERT(key.is(r2)); |
+ ASSERT(receiver.is(r2)); |
+ ASSERT(key.is(r1)); |
ASSERT(value.is(r0)); |
Register receiver_map = r3; |
Register elements_map = r6; |