Additional parameters execute method

Chris Seaton chris.seaton at oracle.com
Sun May 10 23:27:35 UTC 2015


Hi Renze,

The only execute method which is mandated is the abstract one in RootNode. That is execute(VirtualFrame). In your own nodes you can have whatever signature you want. There isn’t anything special about execute(VirtualFrame) in that case, so you can certainly have execute(VirtualFrame, Context), or any other signature.

Chris

> On 11 May 2015, at 00:24, Renze Torensma <renzetorensma at gmail.com> wrote:
> 
> Nobody knows? :(
> 
>> On 5 mei 2015, at 01:24, Renze Torensma <renzetorensma at gmail.com> wrote:
>> 
>> Hi,
>> 
>> I was wondering whether it would be possible to add parameters to the execute method, for example a custom context aside from the VirtualFrame. So for example the execute method would be execute(VirtualFrame frame, Context context) instead of execute(VirtualFrame) like it is in SL and JRuby.
>> 
>> Best regards,
>> Renze
> 



More information about the graal-dev mailing list