| Index: src/ast/ast.h
|
| diff --git a/src/ast/ast.h b/src/ast/ast.h
|
| index 1818aa7df227a1d572965c9d62ccca57ca080267..f02def78a8cfcb79892761b1e4a659bffd62089c 100644
|
| --- a/src/ast/ast.h
|
| +++ b/src/ast/ast.h
|
| @@ -3056,20 +3056,26 @@ class AstVisitor BASE_EMBEDDED {
|
| class AstTraversalVisitor : public AstVisitor {
|
| public:
|
| explicit AstTraversalVisitor(Isolate* isolate);
|
| + explicit AstTraversalVisitor(uintptr_t stack_limit);
|
| virtual ~AstTraversalVisitor() {}
|
|
|
| // Iteration left-to-right.
|
| void VisitDeclarations(ZoneList<Declaration*>* declarations) override;
|
| void VisitStatements(ZoneList<Statement*>* statements) override;
|
| - void VisitExpressions(ZoneList<Expression*>* expressions) override;
|
|
|
| // Individual nodes
|
| #define DECLARE_VISIT(type) void Visit##type(type* node) override;
|
| AST_NODE_LIST(DECLARE_VISIT)
|
| #undef DECLARE_VISIT
|
|
|
| + protected:
|
| + int depth() { return depth_; }
|
| +
|
| private:
|
| DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
|
| +
|
| + int depth_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AstTraversalVisitor);
|
| };
|
|
|
|
|