private static MethodHandle createGWT(SmartHandle test, MethodHandle target, MethodHandle fallback, CacheEntry entry, JRubyCallSite site, boolean curryFallback) { MethodHandle myFallback = curryFallback ? insertArguments(fallback, 0, site) : fallback; MethodHandle guardWithTest = test.guard(target, myFallback); return guardWithTest; }
private static MethodHandle createGWT(SmartHandle test, MethodHandle target, MethodHandle fallback, CacheEntry entry, JRubyCallSite site, boolean curryFallback) { MethodHandle myFallback = curryFallback ? insertArguments(fallback, 0, site) : fallback; MethodHandle guardWithTest = test.guard(target, myFallback); return guardWithTest; }