Index: src/debug/liveedit.h |
diff --git a/src/debug/liveedit.h b/src/debug/liveedit.h |
index 32328d9da7d9cd3dae2a22b80db725a9518e41dd..3614cf74556577da0c8e97ce78eec976d209ae10 100644 |
--- a/src/debug/liveedit.h |
+++ b/src/debug/liveedit.h |
@@ -38,7 +38,8 @@ namespace internal { |
// in order to analyze whether function code may be safely patched (with new |
// code successfully reading existing data from function scopes). The Tracker |
// also collects compiled function codes. |
-class LiveEditFunctionTracker : public AstTraversalVisitor { |
+class LiveEditFunctionTracker |
+ : public AstTraversalVisitor<LiveEditFunctionTracker> { |
public: |
// Traverses the entire AST, and records information about all |
// FunctionLiterals for further use by LiveEdit code patching. The collected |
@@ -46,8 +47,8 @@ class LiveEditFunctionTracker : public AstTraversalVisitor { |
static Handle<JSArray> Collect(FunctionLiteral* node, Handle<Script> script, |
Zone* zone, Isolate* isolate); |
- virtual ~LiveEditFunctionTracker() {} |
- void VisitFunctionLiteral(FunctionLiteral* node) override; |
+ protected: |
+ void VisitFunctionLiteral(FunctionLiteral* node); |
private: |
LiveEditFunctionTracker(Handle<Script> script, Zone* zone, Isolate* isolate); |
@@ -64,6 +65,7 @@ class LiveEditFunctionTracker : public AstTraversalVisitor { |
int len_; |
int current_parent_index_; |
+ DEFINE_AST_VISITOR_DISPATCH() |
DISALLOW_COPY_AND_ASSIGN(LiveEditFunctionTracker); |
}; |