public RespondToMissingMethod(RubyModule implClass, Visibility vis, String methodName) { super(implClass, vis); site = new FunctionalCachingCallSite(methodName); } @Override
public static CallSite getFunctionalCallSite(String name) { return new FunctionalCachingCallSite(name); }
public RespondToMissingMethod(RubyModule implClass, Visibility vis, String methodName) { super(implClass, vis); site = new FunctionalCachingCallSite(methodName); } @Override
public static CallSite getFunctionalCallSite(String name) { return new FunctionalCachingCallSite(name); }
public static CallSite getFunctionalCallSite(String name) { return new FunctionalCachingCallSite(name); }
NativeClosureProxy(Ruby runtime, NativeFunctionInfo closureInfo, Object proc) { this(runtime, closureInfo, proc, new FunctionalCachingCallSite("call")); }
NativeClosureProxy(Ruby runtime, NativeFunctionInfo closureInfo, Object proc) { this(runtime, closureInfo, proc, new FunctionalCachingCallSite("call")); }
NativeClosureProxy(Ruby runtime, NativeFunctionInfo closureInfo, Object proc) { this(runtime, closureInfo, proc, new FunctionalCachingCallSite("call")); }
public static CallSite getFunctionalCallSite(String name) { return new FunctionalCachingCallSite(name); }
NativeClosureProxy(Ruby runtime, NativeFunctionInfo closureInfo, Object proc) { this(runtime, closureInfo, proc, new FunctionalCachingCallSite("call")); }
public CheckedSites(String x) { respond_to_X = new RespondToCallSite(x); site = new FunctionalCachingCallSite(x); methodName = x; } }
@JIT public static FunctionalCachingCallSite newFunctionalCachingCallSite(String name) { return new FunctionalCachingCallSite(name); }
public CheckedSites(String x) { respond_to_X = new RespondToCallSite(x); site = new FunctionalCachingCallSite(x); methodName = x; } }
@JIT public static FunctionalCachingCallSite newFunctionalCachingCallSite(String name) { return new FunctionalCachingCallSite(name); }
private static CachingCallSite getParameterCallSite(Signature signature, int parameterIndex) { if (signature.getParameterCount() <= parameterIndex) { return null; } Type type = signature.getParameterType(parameterIndex); NativeType nativeType = type instanceof MappedType ? ((MappedType) type).getRealType().getNativeType() : type.getNativeType(); switch (nativeType) { case STRING: case TRANSIENT_STRING: return new FunctionalCachingCallSite("to_str"); case POINTER: case BUFFER_IN: case BUFFER_OUT: case BUFFER_INOUT: return new FunctionalCachingCallSite("to_ptr"); default: return null; } }
private static CachingCallSite getParameterCallSite(Signature signature, int parameterIndex) { if (signature.getParameterCount() <= parameterIndex) { return null; } Type type = signature.getParameterType(parameterIndex); NativeType nativeType = type instanceof MappedType ? ((MappedType) type).getRealType().getNativeType() : type.getNativeType(); switch (nativeType) { case STRING: case TRANSIENT_STRING: return new FunctionalCachingCallSite("to_str"); case POINTER: case BUFFER_IN: case BUFFER_OUT: case BUFFER_INOUT: return new FunctionalCachingCallSite("to_ptr"); default: return null; } }
private static CachingCallSite getParameterCallSite(Signature signature, int parameterIndex) { if (signature.getParameterCount() <= parameterIndex) { return null; } Type type = signature.getParameterType(parameterIndex); NativeType nativeType = type instanceof MappedType ? ((MappedType) type).getRealType().getNativeType() : type.getNativeType(); switch (nativeType) { case STRING: case TRANSIENT_STRING: return new FunctionalCachingCallSite("to_str"); case POINTER: case BUFFER_IN: case BUFFER_OUT: case BUFFER_INOUT: return new FunctionalCachingCallSite("to_ptr"); default: return null; } }
private static CachingCallSite getParameterCallSite(Signature signature, int parameterIndex) { if (signature.getParameterCount() <= parameterIndex) { return null; } Type type = signature.getParameterType(parameterIndex); NativeType nativeType = type instanceof MappedType ? ((MappedType) type).getRealType().getNativeType() : type.getNativeType(); switch (nativeType) { case STRING: case TRANSIENT_STRING: return new FunctionalCachingCallSite("to_str"); case POINTER: case BUFFER_IN: case BUFFER_OUT: case BUFFER_INOUT: return new FunctionalCachingCallSite("to_ptr"); default: return null; } }
@JRubyMethod public IRubyObject to_proc(ThreadContext context) { StaticScope scope = context.runtime.getStaticScopeFactory().getDummyScope(); final CallSite site = new FunctionalCachingCallSite(symbol); BlockBody body = new ContextAwareBlockBody(scope, Arity.OPTIONAL, BlockBody.SINGLE_RESTARG) { private IRubyObject yieldInner(ThreadContext context, RubyArray array, Block block) {
@JRubyMethod public IRubyObject to_proc(ThreadContext context) { StaticScope scope = context.runtime.getStaticScopeFactory().getDummyScope(); final CallSite site = new FunctionalCachingCallSite(symbol); BlockBody body = new ContextAwareBlockBody(scope, Arity.OPTIONAL, BlockBody.SINGLE_RESTARG) { private IRubyObject yieldInner(ThreadContext context, RubyArray array, Block block) {