...
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
).
...
No Format | ||
---|---|---|
| ||
callSite: set #callSiteType, CHECK load (MH + #handler), TEM call (TEM) --- callHandler: cmp (MH + #type), CHECK jump,ne wrongMethodType load (MH + #method), METHOD load (METHOD + #compiledEntry), TEM jump (TEM) --- compiledEntry: ... |
Thus, a compiled call to a non-constant method handle can be completed in a small handful of instructions, including about four memory references and two indirect branches.
...
Overview
Content Tools
ThemeBuilder