Class CallSiteGenerator
java.lang.Object
org.codehaus.groovy.runtime.callsite.CallSiteGenerator
Generates specialized call-site classes for the classic (non-indy) call-site cache.
Prefer invokedynamic call sites for new code. Planned for deprecation/removal in a future Groovy version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstructorcompilePogoMethod(CachedMethod cachedMethod) static ConstructorcompilePojoMethod(CachedMethod cachedMethod) static ConstructorcompileStaticMethod(CachedMethod cachedMethod) static voidgenCallWithFixedParams(org.objectweb.asm.ClassWriter cw, String name, String superClass, CachedMethod cachedMethod, String receiverType) static voidgenCallXxxWithArray(org.objectweb.asm.ClassWriter cw, String name, String superClass, CachedMethod cachedMethod, String receiverType) static byte[]genPogoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) static byte[]genPojoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) static byte[]genStaticMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) static booleanisCompilable(CachedMethod method)
-
Method Details
-
genCallWithFixedParams
public static void genCallWithFixedParams(org.objectweb.asm.ClassWriter cw, String name, String superClass, CachedMethod cachedMethod, String receiverType) -
genCallXxxWithArray
public static void genCallXxxWithArray(org.objectweb.asm.ClassWriter cw, String name, String superClass, CachedMethod cachedMethod, String receiverType) -
genPogoMetaMethodSite
public static byte[] genPogoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) -
genPojoMetaMethodSite
public static byte[] genPojoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) -
genStaticMetaMethodSite
public static byte[] genStaticMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, String name) -
compilePogoMethod
-
compilePojoMethod
-
compileStaticMethod
-
isCompilable
-