public class MonomorphicCallSite extends AbstractRelinkableCallSite
DynamicLinker.| Constructor and Description |
|---|
MonomorphicCallSite(CallSiteDescriptor descriptor)
Creates a new call site with monomorphic inline caching strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setGuardedInvocation(GuardedInvocation guardedInvocation,
MethodHandle relink)
This method will be called once by the dynamic linker every time the call site is relinked.
|
getDescriptor, setRelinkAndInvokedynamicInvoker, getTarget, setTarget, syncAllpublic MonomorphicCallSite(CallSiteDescriptor descriptor)
descriptor - the descriptor for this call sitepublic void setGuardedInvocation(GuardedInvocation guardedInvocation, MethodHandle relink)
RelinkableCallSiteguardedInvocation - the guarded invocation that the call site should set as its current target. Note that
the call sites are allowed to keep other non-invalidated invocations around for implementation of polymorphic
inline caches.relink - the fallback method. This is a method matching the method type of the call site that is supplied
by the DynamicLinker to be used by this call site as a fallback when it can't invoke its target with the
passed arguments. The fallback method is such that when it's invoked, it'll try to discover the adequate target
for the invocation, subsequently invoke RelinkableCallSite.setGuardedInvocation(GuardedInvocation, MethodHandle), and
finally invoke the target.Copyright © 2012 Attila Szegedi. All Rights Reserved.