public CheckedSites(String x) { respond_to_X = new RespondToCallSite(x); site = new FunctionalCachingCallSite(x); methodName = x; } }
public CheckedSites(String x) { respond_to_X = new RespondToCallSite(x); site = new FunctionalCachingCallSite(x); methodName = x; } }
public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) return getFastFixnumOpsCallSite(name); return new NormalCachingCallSite(name); }
public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) return getFastFixnumOpsCallSite(name); return new NormalCachingCallSite(name); }
public static CallSite getProfilingCallSite(String name, IRScope scope, long callsiteId) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); CallSite callSite = null; // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) { callSite = getFastFixnumOpsCallSite(name); } return callSite != null ? callSite : new ProfilingCachingCallSite(name, scope, callsiteId); }
public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); CallSite callSite = null; // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) { callSite = getFastFixnumOpsCallSite(name); } return callSite != null ? callSite : new NormalCachingCallSite(name); }
public static CallSite getProfilingCallSite(String name, IRScope scope, long callsiteId) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); CallSite callSite = null; // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) { callSite = getFastFixnumOpsCallSite(name); } return callSite != null ? callSite : new ProfilingCachingCallSite(name, scope, callsiteId); }
public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); CallSite callSite = null; // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) { callSite = getFastFixnumOpsCallSite(name); } return callSite != null ? callSite : new NormalCachingCallSite(name); }