Index: src/mips/ic-mips.cc |
diff --git a/src/mips/ic-mips.cc b/src/mips/ic-mips.cc |
index 629aef9b6c76c7e83a1fd64e895ad7a76b269fac..4683502a301805c89ea7970f2fc6e8f1c564b6b6 100644 |
--- a/src/mips/ic-mips.cc |
+++ b/src/mips/ic-mips.cc |
@@ -510,8 +510,6 @@ void KeyedStoreIC::GenerateSloppyArguments(MacroAssembler* masm) { |
Register receiver = ReceiverRegister(); |
Register key = NameRegister(); |
Register value = ValueRegister(); |
- ASSERT(receiver.is(a2)); |
- ASSERT(key.is(a1)); |
ASSERT(value.is(a0)); |
Label slow, notin; |
@@ -568,9 +566,24 @@ const Register StoreIC::NameRegister() { return a2; } |
const Register StoreIC::ValueRegister() { return a0; } |
-const Register KeyedStoreIC::ReceiverRegister() { return a2; } |
-const Register KeyedStoreIC::NameRegister() { return a1; } |
-const Register KeyedStoreIC::ValueRegister() { return a0; } |
+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 a3; |
+} |
void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
@@ -980,8 +993,6 @@ void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm, |
Register value = ValueRegister(); |
Register key = NameRegister(); |
Register receiver = ReceiverRegister(); |
- ASSERT(receiver.is(a2)); |
- ASSERT(key.is(a1)); |
ASSERT(value.is(a0)); |
Register receiver_map = a3; |
Register elements_map = t2; |