Re: Byte code or branching method handle?

2012-05-28 Thread Attila Szegedi
My rule of thumb is: if you know that one concrete code shape will always fit the execution, I'd just emit the bytecode. Invokedynamic is great for cases where the executed code needs to change from time to time. You can also combine it - the invocation of actual property getters getA(), getB()

Re: Byte code or branching method handle?

2012-05-28 Thread Mark Roos
Hi Dain This sounds similar to a non local return in smalltalk where some method in a chain returns to the starting method. I did this with a throw and a catch based on the invoker of the chain. Seems to work for me but I will leave it to the experts to tell you the best way for your