Truffle CallNode API

Stefan Marr java at stefan-marr.de
Thu Jan 30 12:53:46 PST 2014


Hi Christian:

On 29 Jan 2014, at 22:09, Christian Humer <christian.humer at gmail.com> wrote:

> I just updated the Truffle Inlining API with a more robust solution (will
> get pushed to openjdk this night).
> I removed the old API namely the following interfaces InlinableCallSite and
> InlinedCallSite.
> As a replacement for those classes you should now use a new class CallNode.
> This class is already a Node and can directly be used as such inside of an
> polymorphic function inline cache.
> For further information on how to use it please see SLDirectDispatchNode
> and the javadoc in the CallNode class.

I still haven’t looked for an alternative solution to my explicit Unary/Binary/Ternary/Keyword nodes, which facilitate specialization of things like add. But this change seems to be incompatible with my solution, because I am not really supposed to subclass CallNode, right? At least I am guessing that reading the factory methods.
Or would it be fine to have custom subclasses?

Thanks
Stefan

-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list