| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 21c38d59dfc481ef24d989029ea80e375d3201e4..315f98f639a43acfe894599f41997fd718c0cba6 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -1099,6 +1099,15 @@ REGULAR_NODE(CompareOperation)
|
| REGULAR_NODE(ThisFunction)
|
| REGULAR_NODE(Call)
|
| REGULAR_NODE(CallNew)
|
| +
|
| +// TODO(mmassi): Work on lifting these restrictions and make TryCatch regular.
|
| +// REGULAR_NODE(TryCatchStatement)
|
| +void AstConstructionVisitor::VisitTryCatchStatement(TryCatchStatement* node) {
|
| + increase_node_count();
|
| + add_flag(kDontOsr);
|
| + add_flag(kDontInline);
|
| +}
|
| +
|
| // In theory, for VariableProxy we'd have to add:
|
| // if (node->var()->IsLookupSlot()) add_flag(kDontInline);
|
| // But node->var() is usually not bound yet at VariableProxy creation time, and
|
| @@ -1115,7 +1124,6 @@ DONT_OPTIMIZE_NODE(ModuleUrl)
|
| DONT_OPTIMIZE_NODE(ModuleStatement)
|
| DONT_OPTIMIZE_NODE(Yield)
|
| DONT_OPTIMIZE_NODE(WithStatement)
|
| -DONT_OPTIMIZE_NODE(TryCatchStatement)
|
| DONT_OPTIMIZE_NODE(TryFinallyStatement)
|
| DONT_OPTIMIZE_NODE(DebuggerStatement)
|
| DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral)
|
|
|