| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 851a111ba85f25f70ccee668f84c4365daa8deed..6dc3c3c41bc10c9af6946bcd5f121042239887db 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -1914,19 +1914,15 @@ void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
|
|
|
|
|
| void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
|
| - Register context = ToRegister(instr->InputAt(0));
|
| + Register context = ToRegister(instr->context());
|
| Register result = ToRegister(instr->result());
|
| - __ mov(result,
|
| - Operand(context, Context::SlotOffset(Context::FCONTEXT_INDEX)));
|
| - __ mov(result, ContextOperand(result, instr->slot_index()));
|
| + __ mov(result, ContextOperand(context, instr->slot_index()));
|
| }
|
|
|
|
|
| void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) {
|
| Register context = ToRegister(instr->context());
|
| Register value = ToRegister(instr->value());
|
| - __ mov(context,
|
| - Operand(context, Context::SlotOffset(Context::FCONTEXT_INDEX)));
|
| __ mov(ContextOperand(context, instr->slot_index()), value);
|
| if (instr->needs_write_barrier()) {
|
| Register temp = ToRegister(instr->TempAt(0));
|
|
|