MethodHandle for indirect/vtable call?
John Rose
john.r.rose at oracle.com
Wed Dec 16 20:11:05 UTC 2020
On Dec 16, 2020, at 10:52 AM, Jorn Vernee <JORN.VERNEE at ORACLE.COM> wrote:
>
> Doing this is technically possible, and I think it should optimize just as well as the current scheme. (WRT data motion, we have the liberty of passing the address in a non-ABI register, so I'm not worried about that). We can build the current implementation, where the address is fixed, on top of the version where the address is passed dynamically.
Exactly. And on the JVM side the extra register
(or stack slot, for that matter) can be populated
from the appendix argument (which comes after
all the regular method arguments). The appendix
has, in the JVM, a similar character as the non-ABI
register: It is a “fresh” register, and doesn’t disturb
any of the calling sequence assignments of the other
arguments.
— John
More information about the panama-dev
mailing list