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

Issue 2169833002: [parser] Refactor AstTraversalVisitor (Closed)

Created:
4 years, 5 months ago by nickie
Modified:
4 years, 5 months ago
Reviewers:
adamk, Toon Verwaest, Yang
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Refactor AstTraversalVisitor This patch parametrizes AstTraversalVisitor by the actual subclass, in a similar way as AstVisitor is parametrized. This allows a subclass to, e.g., override the Visit method and still use the traversal mechanism. It also allows the subclass to override the specific visiting methods, without them being virtual. This patch also removes AstExpressionVisitor, subsuming its functionality in AstTraversalVisitor. R=adamk@chromium.org, verwaest@chromium.org BUG= LOG=N Committed: https://crrev.com/ad6ea932272a1f8f74535c31882aaff3fb8ee6d4 Cr-Commit-Position: refs/heads/master@{#37998}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fixes according to reviewers' comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -579 lines) Patch
M BUILD.gn View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/ast/ast.h View 1 2 3 chunks +6 lines, -38 lines 0 comments Download
M src/ast/ast.cc View 1 chunk +0 lines, -299 lines 0 comments Download
D src/ast/ast-expression-visitor.h View 1 chunk +0 lines, -41 lines 0 comments Download
D src/ast/ast-expression-visitor.cc View 1 chunk +0 lines, -167 lines 0 comments Download
A src/ast/ast-traversal-visitor.h View 1 1 chunk +504 lines, -0 lines 0 comments Download
M src/debug/liveedit.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M src/debug/liveedit.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M src/parsing/parameter-initializer-rewriter.cc View 1 2 2 chunks +12 lines, -10 lines 0 comments Download
M src/parsing/parser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M src/v8.gyp View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
nickie
4 years, 5 months ago (2016-07-21 10:48:25 UTC) #1
Yang
src/debug lgtm.
4 years, 5 months ago (2016-07-21 10:53:21 UTC) #5
Toon Verwaest
lgtm
4 years, 5 months ago (2016-07-21 11:05:53 UTC) #6
Toon Verwaest
https://codereview.chromium.org/2169833002/diff/1/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2169833002/diff/1/src/ast/ast.h#newcode2922 src/ast/ast.h:2922: return this->impl()->Visit##NodeType(static_cast<NodeType*>(node)); This change isn't necessary if you add ...
4 years, 5 months ago (2016-07-21 11:16:59 UTC) #9
nickie
On 2016/07/21 11:16:59, Toon Verwaest wrote: > https://codereview.chromium.org/2169833002/diff/1/src/ast/ast.h > File src/ast/ast.h (right): > > https://codereview.chromium.org/2169833002/diff/1/src/ast/ast.h#newcode2922 ...
4 years, 5 months ago (2016-07-21 14:15:24 UTC) #10
adamk
https://codereview.chromium.org/2169833002/diff/1/src/ast/ast-traversal-visitor.h File src/ast/ast-traversal-visitor.h (right): https://codereview.chromium.org/2169833002/diff/1/src/ast/ast-traversal-visitor.h#newcode40 src/ast/ast-traversal-visitor.h:40: bool VisitExpression(Expression* node) { return true; } I don't ...
4 years, 5 months ago (2016-07-21 18:11:57 UTC) #11
nickie
https://codereview.chromium.org/2169833002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2169833002/diff/1/BUILD.gn#newcode843 BUILD.gn:843: "src/ast/ast-numbering.h", Adding a forgotten "src/ast/ast-traversal-visitor.h" here. https://codereview.chromium.org/2169833002/diff/1/src/ast/ast-traversal-visitor.h File src/ast/ast-traversal-visitor.h ...
4 years, 5 months ago (2016-07-22 08:40:19 UTC) #12
adamk
lgtm https://codereview.chromium.org/2169833002/diff/1/src/ast/ast-traversal-visitor.h File src/ast/ast-traversal-visitor.h (right): https://codereview.chromium.org/2169833002/diff/1/src/ast/ast-traversal-visitor.h#newcode40 src/ast/ast-traversal-visitor.h:40: bool VisitExpression(Expression* node) { return true; } On ...
4 years, 5 months ago (2016-07-22 18:02:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2169833002/20001
4 years, 5 months ago (2016-07-25 07:32:33 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/940) v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 5 months ago (2016-07-25 07:33:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2169833002/40001
4 years, 5 months ago (2016-07-25 08:01:04 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-25 08:25:54 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 08:35:23 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ad6ea932272a1f8f74535c31882aaff3fb8ee6d4
Cr-Commit-Position: refs/heads/master@{#37998}

Powered by Google App Engine
This is Rietveld 408576698