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

Unified Diff: src/debug/liveedit.h

Issue 2169833002: [parser] Refactor AstTraversalVisitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: src/debug/liveedit.h
diff --git a/src/debug/liveedit.h b/src/debug/liveedit.h
index 32328d9da7d9cd3dae2a22b80db725a9518e41dd..e2e6b01f6172e0d2db1c5a7326979bf5fa7b107f 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,9 @@ 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:
+ friend AstTraversalVisitor<LiveEditFunctionTracker>;
+ void VisitFunctionLiteral(FunctionLiteral* node);
private:
LiveEditFunctionTracker(Handle<Script> script, Zone* zone, Isolate* isolate);

Powered by Google App Engine
This is Rietveld 408576698