Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index 7ea466ccb569444b0afd4c4e52938adc0816b2f5..1b80d3f36d951a3f1b71ecbabd650d8ce0d6af56 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -2867,9 +2867,13 @@ class AstVisitor BASE_EMBEDDED { |
#define DEFINE_AST_VISITOR_SUBCLASS_MEMBERS() \ |
public: \ |
+ void VisitNoStackOverflowCheck(AstNode* node) { \ |
+ GENERATE_AST_VISITOR_SWITCH() \ |
+ } \ |
+ \ |
void Visit(AstNode* node) { \ |
if (CheckStackOverflow()) return; \ |
- GENERATE_AST_VISITOR_SWITCH() \ |
+ VisitNoStackOverflowCheck(node); \ |
} \ |
\ |
void SetStackOverflow() { stack_overflow_ = true; } \ |