Chromium Code Reviews| Index: src/compiler/ast-graph-builder.h |
| diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h |
| index c916e7940f0d7fb4fe6924a772012963cd40d04a..852e25a26a05ff470a4a8fa2f6eb04687577535d 100644 |
| --- a/src/compiler/ast-graph-builder.h |
| +++ b/src/compiler/ast-graph-builder.h |
| @@ -32,11 +32,12 @@ class TypeHintAnalysis; |
| // underlying AST. The produced graph can either be compiled into a |
| // stand-alone function or be wired into another graph for the purposes |
| // of function inlining. |
| -class AstGraphBuilder : public AstVisitor { |
| +class AstGraphBuilder : public AstVisitor<AstGraphBuilder> { |
|
Igor Sheludko
2016/07/14 16:39:54
Same comment as in HOptimizedGraphBuilder is reque
Toon Verwaest
2016/07/15 07:07:20
Done.
|
| public: |
| AstGraphBuilder(Zone* local_zone, CompilationInfo* info, JSGraph* jsgraph, |
| LoopAssignmentAnalysis* loop_assignment = nullptr, |
| TypeHintAnalysis* type_hint_analysis = nullptr); |
| + virtual ~AstGraphBuilder() {} |
| // Creates a graph by visiting the entire AST. |
| bool CreateGraph(bool stack_check = true); |
| @@ -51,13 +52,13 @@ class AstGraphBuilder : public AstVisitor { |
| } |
| protected: |
| -#define DECLARE_VISIT(type) void Visit##type(type* node) override; |
| +#define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| // Visiting functions for AST nodes make this an AstVisitor. |
| AST_NODE_LIST(DECLARE_VISIT) |
| #undef DECLARE_VISIT |
| // Visiting function for declarations list is overridden. |
| - void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
| + void VisitDeclarations(ZoneList<Declaration*>* declarations); |
| private: |
| class AstContext; |