| Index: src/arm/lithium-arm.cc
|
| ===================================================================
|
| --- src/arm/lithium-arm.cc (revision 6881)
|
| +++ src/arm/lithium-arm.cc (working copy)
|
| @@ -1708,11 +1708,13 @@
|
|
|
|
|
| LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
|
| - LOperand* context = UseTempRegister(instr->context());
|
| + LOperand* context;
|
| LOperand* value;
|
| if (instr->NeedsWriteBarrier()) {
|
| + context = UseTempRegister(instr->context());
|
| value = UseTempRegister(instr->value());
|
| } else {
|
| + context = UseRegister(instr->context());
|
| value = UseRegister(instr->value());
|
| }
|
| return new LStoreContextSlot(context, value);
|
|
|