Index: src/mips64/stub-cache-mips64.cc |
diff --git a/src/mips64/stub-cache-mips64.cc b/src/mips64/stub-cache-mips64.cc |
index 5260eb3e95a724aaa0a85499da2e5bfd75a2f348..a84764baf2fcbab5ee04abe81a976819f1842e10 100644 |
--- a/src/mips64/stub-cache-mips64.cc |
+++ b/src/mips64/stub-cache-mips64.cc |
@@ -1384,12 +1384,12 @@ Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( |
} |
Label number_case; |
- Register match = scratch1(); |
+ Register match = scratch2(); |
Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; |
__ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. |
// Polymorphic keyed stores may use the map register |
- Register map_reg = scratch2(); |
+ Register map_reg = scratch1(); |
ASSERT(kind() != Code::KEYED_STORE_IC || |
map_reg.is(KeyedStoreIC::MapRegister())); |