| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index bc975b196519824436099ca73154972b193405f5..2519f169706638300763c0bf4737f19718564b5f 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1334,7 +1334,10 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) {
|
| try_control.BeginTry();
|
| {
|
| ControlScopeForCatch scope(this, &try_control);
|
| + STATIC_ASSERT(TryBlockConstant::kElementCount == 1);
|
| + environment()->Push(current_context());
|
| Visit(stmt->try_block());
|
| + environment()->Pop();
|
| }
|
| try_control.EndTry();
|
|
|
| @@ -1381,7 +1384,10 @@ void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
|
| try_control.BeginTry();
|
| {
|
| ControlScopeForFinally scope(this, commands, &try_control);
|
| + STATIC_ASSERT(TryBlockConstant::kElementCount == 1);
|
| + environment()->Push(current_context());
|
| Visit(stmt->try_block());
|
| + environment()->Pop();
|
| }
|
| try_control.EndTry(commands->GetFallThroughToken(), fallthrough_result);
|
|
|
|
|