Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 0bc8aef6ebc5bc27e40bf088a24f5cd9ba8e1e49..b2ce5203c511d096b7f300c290100aea80418d26 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -356,7 +356,7 @@ bool LCodeGen::GenerateJumpTable() { |
__ jmp(&needs_frame_is_call); |
} else { |
__ bind(&needs_frame_is_call); |
- __ push(esi); |
+ __ push(MemOperand(ebp, StandardFrameConstants::kContextOffset)); |
// This variant of deopt can only be used with stubs. Since we don't |
// have a function pointer to install in the stack frame that we're |
// building, install a special marker there instead. |
@@ -381,7 +381,7 @@ bool LCodeGen::GenerateJumpTable() { |
__ jmp(&needs_frame_not_call); |
} else { |
__ bind(&needs_frame_not_call); |
- __ push(esi); |
+ __ push(MemOperand(ebp, StandardFrameConstants::kContextOffset)); |
// This variant of deopt can only be used with stubs. Since we don't |
// have a function pointer to install in the stack frame that we're |
// building, install a special marker there instead. |