Index: src/crankshaft/hydrogen.h |
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h |
index 66b50ed38e07adf85fd6a50ac7b9ceafbc210da5..ca7037c3abb88230b28f6b71437312982f8e5bd4 100644 |
--- a/src/crankshaft/hydrogen.h |
+++ b/src/crankshaft/hydrogen.h |
@@ -2062,8 +2062,8 @@ inline HContext* HGraphBuilder::New<HContext>() { |
return HContext::New(zone()); |
} |
- |
-class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
+class HOptimizedGraphBuilder : public HGraphBuilder, |
Igor Sheludko
2016/07/14 16:39:54
Please add a comment that although the HOptimizedG
Toon Verwaest
2016/07/15 07:07:20
Done.
|
+ public AstVisitor<HOptimizedGraphBuilder> { |
public: |
// A class encapsulating (lazily-allocated) break and continue blocks for |
// a breakable statement. Separated from BreakAndContinueScope so that it |
@@ -2143,7 +2143,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
FunctionState* function_state() const { return function_state_; } |
- void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
+ void VisitDeclarations(ZoneList<Declaration*>* declarations); |
AstTypeBounds* bounds() { return &bounds_; } |
@@ -2353,7 +2353,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
HBasicBlock* false_block); |
// Visit a list of expressions from left to right, each in a value context. |
- void VisitExpressions(ZoneList<Expression*>* exprs) override; |
+ void VisitExpressions(ZoneList<Expression*>* exprs); |
void VisitExpressions(ZoneList<Expression*>* exprs, |
ArgumentsAllowedFlag flag); |
@@ -2363,9 +2363,9 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
void PushArgumentsFromEnvironment(int count); |
void SetUpScope(Scope* scope); |
- void VisitStatements(ZoneList<Statement*>* statements) override; |
+ void VisitStatements(ZoneList<Statement*>* statements); |
-#define DECLARE_VISIT(type) void Visit##type(type* node) override; |
+#define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
AST_NODE_LIST(DECLARE_VISIT) |
#undef DECLARE_VISIT |