Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 67d81c605a163165873d2f3b6fcb77de5592dc89..022f41efa54ca550a3ffc6bd0c1d8c4e3e6d5294 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -301,12 +301,7 @@ |
public: |
ControlScopeForTryCatch(BytecodeGenerator* generator, |
TryCatchBuilder* try_catch_builder) |
- : ControlScope(generator) { |
- generator->try_catch_nesting_level_++; |
- } |
- virtual ~ControlScopeForTryCatch() { |
- generator()->try_catch_nesting_level_--; |
- } |
+ : ControlScope(generator) {} |
protected: |
bool Execute(Command command, Statement* statement) override { |
@@ -333,12 +328,7 @@ |
DeferredCommands* commands) |
: ControlScope(generator), |
try_finally_builder_(try_finally_builder), |
- commands_(commands) { |
- generator->try_finally_nesting_level_++; |
- } |
- virtual ~ControlScopeForTryFinally() { |
- generator()->try_finally_nesting_level_--; |
- } |
+ commands_(commands) {} |
protected: |
bool Execute(Command command, Statement* statement) override { |
@@ -553,9 +543,7 @@ |
execution_control_(nullptr), |
execution_context_(nullptr), |
execution_result_(nullptr), |
- register_allocator_(nullptr), |
- try_catch_nesting_level_(0), |
- try_finally_nesting_level_(0) { |
+ register_allocator_(nullptr) { |
InitializeAstVisitor(isolate); |
} |
@@ -1162,7 +1150,7 @@ |
void BytecodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) { |
- TryFinallyBuilder try_control_builder(builder(), IsInsideTryCatch()); |
+ TryFinallyBuilder try_control_builder(builder()); |
Register no_reg; |
// We keep a record of all paths that enter the finally-block to be able to |