Visiting Nodes
Stefan Marr
java at stefan-marr.de
Fri May 1 18:36:27 UTC 2015
Hi Guido:
> On 01 May 2015, at 17:17, Guido Chari <charig at gmail.com> wrote:
>
> I would like to implement a visitor that add nodes with my particular
> behavior after compilation. But then i realized the accept method on Node
> is declared as final. Wouldn’t it be better to allow subclassing the accept?
There is already an AST visitor in the TruffleSOM code base: https://github.com/SOM-st/TruffleSOM/blob/master/src/som/interpreter/Inliner.java
This one is adjusting FrameSlot after splitting lexically embedded methods together with their outer methods.
Hope that helps
Best regards
Stefan
--
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/
More information about the graal-dev
mailing list