| Index: src/x64/lithium-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/lithium-codegen-x64.cc (revision 7071)
|
| +++ src/x64/lithium-codegen-x64.cc (working copy)
|
| @@ -1977,7 +1977,8 @@
|
| __ movq(ContextOperand(context, instr->slot_index()), value);
|
| if (instr->needs_write_barrier()) {
|
| int offset = Context::SlotOffset(instr->slot_index());
|
| - __ RecordWrite(context, offset, value, kScratchRegister);
|
| + Register scratch = ToRegister(instr->TempAt(0));
|
| + __ RecordWrite(context, offset, value, scratch);
|
| }
|
| }
|
|
|
|
|