Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: src/ast/ast-expression-visitor.h

Issue 2169833002: [parser] Refactor AstTraversalVisitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-expression-visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-expression-visitor.h
diff --git a/src/ast/ast-expression-visitor.h b/src/ast/ast-expression-visitor.h
deleted file mode 100644
index 3f7b9f7734a099c5e0baea91357b029ef8e26ddf..0000000000000000000000000000000000000000
--- a/src/ast/ast-expression-visitor.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_AST_AST_EXPRESSION_VISITOR_H_
-#define V8_AST_AST_EXPRESSION_VISITOR_H_
-
-#include "src/allocation.h"
-#include "src/ast/ast.h"
-#include "src/ast/scopes.h"
-#include "src/type-info.h"
-#include "src/zone.h"
-
-namespace v8 {
-namespace internal {
-
-// A Visitor over a CompilationInfo's AST that invokes
-// VisitExpression on each expression node.
-
-class AstExpressionVisitor : public AstTraversalVisitor {
- public:
- AstExpressionVisitor(Isolate* isolate, Expression* root);
- AstExpressionVisitor(uintptr_t stack_limit, Expression* root);
- void Run();
-
- protected:
- virtual void VisitExpression(Expression* expression) = 0;
-
- private:
-#define DECLARE_VISIT(type) void Visit##type(type* node) override;
- EXPRESSION_NODE_LIST(DECLARE_VISIT)
-#undef DECLARE_VISIT
-
- Expression* root_;
-
- DISALLOW_COPY_AND_ASSIGN(AstExpressionVisitor);
-};
-} // namespace internal
-} // namespace v8
-
-#endif // V8_AST_AST_EXPRESSION_VISITOR_H_
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-expression-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698