Index: src/full-codegen/full-codegen.h |
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h |
index 085ad0d640c8eab9274ce96803778823d9d7f18d..7a735d7939d64bccdb7b849da3dcb405fd00f884 100644 |
--- a/src/full-codegen/full-codegen.h |
+++ b/src/full-codegen/full-codegen.h |
@@ -27,7 +27,7 @@ class JumpPatchSite; |
// ----------------------------------------------------------------------------- |
// Full code generator. |
-class FullCodeGenerator: public AstVisitor { |
+class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> { |
public: |
FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info) |
: masm_(masm), |
@@ -387,7 +387,7 @@ class FullCodeGenerator: public AstVisitor { |
void VisitInDuplicateContext(Expression* expr); |
- void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
+ void VisitDeclarations(ZoneList<Declaration*>* declarations); |
void DeclareGlobals(Handle<FixedArray> pairs); |
int DeclareGlobalsFlags(); |
@@ -737,7 +737,7 @@ class FullCodeGenerator: public AstVisitor { |
void PushCalleeAndWithBaseObject(Call* expr); |
// AST node visit functions. |
-#define DECLARE_VISIT(type) void Visit##type(type* node) override; |
+#define DECLARE_VISIT(type) void Visit##type(type* node); |
AST_NODE_LIST(DECLARE_VISIT) |
#undef DECLARE_VISIT |