| Index: src/codegen-ia32.cc
|
| ===================================================================
|
| --- src/codegen-ia32.cc (revision 1245)
|
| +++ src/codegen-ia32.cc (working copy)
|
| @@ -190,6 +190,8 @@
|
| // Get outer context and create a new context based on it.
|
| frame_->PushFunction();
|
| Result context = frame_->CallRuntime(Runtime::kNewContext, 1);
|
| + // Update context local.
|
| + frame_->SaveContextRegister();
|
|
|
| if (kDebug) {
|
| JumpTarget verified_true(this);
|
| @@ -201,8 +203,6 @@
|
| __ int3();
|
| verified_true.Bind();
|
| }
|
| - // Update context local.
|
| - frame_->SaveContextRegister();
|
| }
|
|
|
| // TODO(1241774): Improve this code:
|
| @@ -1772,6 +1772,9 @@
|
| context = frame_->CallRuntime(Runtime::kPushContext, 1);
|
| }
|
|
|
| + // Update context local.
|
| + frame_->SaveContextRegister();
|
| +
|
| if (kDebug) {
|
| JumpTarget verified_true(this);
|
| // Verify that the result of the runtime call and the esi register are
|
| @@ -1783,9 +1786,6 @@
|
| __ int3();
|
| verified_true.Bind();
|
| }
|
| -
|
| - // Update context local.
|
| - frame_->SaveContextRegister();
|
| }
|
|
|
|
|
|
|