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

Issue 1963243003: [compiler] Add a traversing AST visitor (Closed)

Created:
4 years, 7 months ago by jgruber1
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[compiler] Add a traversing AST visitor Contrary to AstVisitor, which does not implement any traversal logic, AstTraversalVisitor provides default implementations for each Visit* function which walk through the AST. It is intended to be used as a base class for visitors which are only interested in a small portion of the AST. R=yangguo@chromium.org Committed: https://crrev.com/62b397a3a7d68d43f7cf93b655875205b3796259 Cr-Commit-Position: refs/heads/master@{#36283}

Patch Set 1 #

Patch Set 2 : Compile fix for recent changes in master #

Patch Set 3 : Remove accidental build file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -0 lines) Patch
M src/ast/ast.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
M src/ast/ast.cc View 1 1 chunk +285 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
jgruber1
Should we add someone else as reviewer for this one?
4 years, 7 months ago (2016-05-11 06:41:22 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963243003/1
4 years, 7 months ago (2016-05-11 06:47:40 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-11 06:47:41 UTC) #5
jgruber1
4 years, 7 months ago (2016-05-11 07:03:58 UTC) #7
Yang
On 2016/05/11 07:03:58, jgruber wrote: LGTM, though we should either use this soon, or add ...
4 years, 7 months ago (2016-05-11 07:12:14 UTC) #8
adamk
This looks like it shares a lot of boilerplate with AstExpressionVisitor; could that be a ...
4 years, 7 months ago (2016-05-11 22:38:20 UTC) #10
jgruber1
On 2016/05/11 22:38:20, adamk wrote: > This looks like it shares a lot of boilerplate ...
4 years, 7 months ago (2016-05-12 08:12:20 UTC) #11
Yang
On 2016/05/12 08:12:20, jgruber wrote: > On 2016/05/11 22:38:20, adamk wrote: > > This looks ...
4 years, 7 months ago (2016-05-12 11:58:27 UTC) #12
jgruber1
Ping :)
4 years, 7 months ago (2016-05-13 13:42:31 UTC) #13
Yang
Benedikt, could you give this a look to unblock progress? Thanks.
4 years, 7 months ago (2016-05-17 05:19:09 UTC) #16
Benedikt Meurer
lgtm
4 years, 7 months ago (2016-05-17 05:37:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963243003/1
4 years, 7 months ago (2016-05-17 11:11:48 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/17703) v8_linux_arm64_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 7 months ago (2016-05-17 11:13:59 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963243003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963243003/40001
4 years, 7 months ago (2016-05-17 13:39:17 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-17 14:09:28 UTC) #26
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/62b397a3a7d68d43f7cf93b655875205b3796259 Cr-Commit-Position: refs/heads/master@{#36283}
4 years, 7 months ago (2016-05-17 14:11:43 UTC) #28
adamk
I'm a little confused; I read Yang's last question as being addressed to jgruber, but ...
4 years, 7 months ago (2016-05-18 19:24:14 UTC) #29
jgruber
On 2016/05/18 19:24:14, adamk wrote: > I'm a little confused; I read Yang's last question ...
4 years, 7 months ago (2016-05-19 07:58:00 UTC) #30
Yang
On 2016/05/19 07:58:00, jgruber1 wrote: > On 2016/05/18 19:24:14, adamk wrote: > > I'm a ...
4 years, 7 months ago (2016-05-19 08:01:45 UTC) #31
adamk
4 years, 7 months ago (2016-05-19 19:52:28 UTC) #32
Message was sent while issue was closed.
On 2016/05/19 08:01:45, Yang wrote:
> On 2016/05/19 07:58:00, jgruber1 wrote:
> > On 2016/05/18 19:24:14, adamk wrote:
> > > I'm a little confused; I read Yang's last question as being addressed to
> > > jgruber, but I don't see an answer to it on this patch. I'm worried that
> > further
> > > duplication of this logic is likely to lead to bugs down the road as the
> > > visitors diverge.
> > 
> > I assumed Yang's question was meant for you, which is why I was still
waiting
> > for an answer from you in fact :) I agree that we should not duplicate the
> > visitor logic though and I'll take a look at this soon. Do you have an
opinion
> > on Yang's options above?
> 
> Yes indeed. I was trying to get an opinion from Adam on how to avoid code
> duplication.

Apologies for the miscommunication, I should have stated my assumption when
jgruber pinged. Will consider Yang's suggestion more, at first glance it seems
pretty reasonable.

Powered by Google App Engine
This is Rietveld 408576698