Package org.codehaus.groovy.vmplugin.v8
Class CacheableCallSite
java.lang.Object
java.lang.invoke.CallSite
java.lang.invoke.MutableCallSite
org.codehaus.groovy.vmplugin.v8.CacheableCallSite
Represents a cacheable call site, which can reduce the cost of resolving methods
- Since:
- 3.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.groovy.vmplugin.v8.MethodHandleWrapper
getAndPut
(String className, MemoizeCache.ValueProvider<? super String, ? extends org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper> valueProvider) long
org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper
void
void
setDefaultTarget
(MethodHandle defaultTarget) void
setFallbackTarget
(MethodHandle fallbackTarget) Methods inherited from class java.lang.invoke.MutableCallSite
dynamicInvoker, getTarget, setTarget, syncAll
-
Constructor Details
-
CacheableCallSite
-
-
Method Details
-
getAndPut
public org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper getAndPut(String className, MemoizeCache.ValueProvider<? super String, ? extends org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper> valueProvider) -
put
public org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper put(String name, org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper mhw) -
incrementFallbackCount
public long incrementFallbackCount() -
resetFallbackCount
public void resetFallbackCount() -
getDefaultTarget
-
setDefaultTarget
-
getFallbackTarget
-
setFallbackTarget
-
getLookup
-