Patch name: methn.patch
Calling Sequences
Method handle calling sequence is a variation of the virtual calling sequence. (The gory details [are documented elsewhere|CallingSequences.) The caller sets up the call as if the method handle were the receiver of a virtual call (which is nominally invoke
).
Control is transferred to a location fetched from the method handle; this location is generally a stub of some sort, but may eventually be (in direct cases) the compiled entry point of the target method.
The stub is responsible for guarding against signature mismatch. The caller passes the intended MethodType
in a standard register.