| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index a153b76c9f35b7e9037a9538ffea3acff54cef68..38030cfaedf314ede0641682cd8c47dd72467d87 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1116,6 +1116,7 @@ void BytecodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) {
|
| // when the handler is entered by the stack-unwinding machinery.
|
| // TODO(mstarzinger): Be smarter about register allocation.
|
| Register context = register_allocator()->NewRegister();
|
| + builder()->MoveRegister(Register::current_context(), context);
|
|
|
| // Evaluate the try-block inside a control scope. This simulates a handler
|
| // that is intercepting 'throw' control commands.
|
| @@ -1169,6 +1170,7 @@ void BytecodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
|
| // when the handler is entered by the stack-unwinding machinery.
|
| // TODO(mstarzinger): Be smarter about register allocation.
|
| Register context = register_allocator()->NewRegister();
|
| + builder()->MoveRegister(Register::current_context(), context);
|
|
|
| // Evaluate the try-block inside a control scope. This simulates a handler
|
| // that is intercepting all control commands.
|
|
|