Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 48f72e6656742a3646b59fb58f050b5236ba6731..e31e3ade5390ecdd79149587bc718cef9b749e16 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -511,14 +511,14 @@ void StubCompiler::GenerateStoreField(MacroAssembler* masm, |
if (!transition.is_null()) { |
// Update the map of the object. |
- __ mov(scratch, Operand(transition)); |
- __ str(scratch, FieldMemOperand(receiver_reg, HeapObject::kMapOffset)); |
+ __ mov(scratch1, Operand(transition)); |
+ __ str(scratch1, FieldMemOperand(receiver_reg, HeapObject::kMapOffset)); |
// Update the write barrier for the map field and pass the now unused |
// name_reg as scratch register. |
__ RecordWriteField(receiver_reg, |
HeapObject::kMapOffset, |
- scratch, |
+ scratch1, |
name_reg, |
kLRHasNotBeenSaved, |
kDontSaveFPRegs, |