public VCallNode(ISourcePosition position, String name) { super(position); this.callAdapter = MethodIndex.getVariableCallSite(name); }
public static CallSite[] setVariableCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getVariableCallSite(name); return callSites; }
public static CallSite[] setVariableCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getVariableCallSite(name); return callSites; }
public static CallSite[] setVariableCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getVariableCallSite(name); return callSites; }
public VCallNode(ISourcePosition position, String name) { super(position); this.callAdapter = MethodIndex.getVariableCallSite(name); }
public static CallSite[] setVariableCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getVariableCallSite(name); return callSites; }
break; case 'V': sites[i/2] = MethodIndex.getVariableCallSite(pieces[i]); break; case 'S':
break; case 'V': sites[i/2] = MethodIndex.getVariableCallSite(pieces[i]); break; case 'S':
break; case 'V': sites[i/2] = MethodIndex.getVariableCallSite(pieces[i]); break; case 'S':
break; case 'V': sites[i/2] = MethodIndex.getVariableCallSite(pieces[i]); break; case 'S':
private static CallSite getCallSiteFor(CallType callType, MethAddr methAddr) { assert callType != null: "Calltype should never be null"; String name = methAddr.getName(); switch (callType) { case NORMAL: return MethodIndex.getCallSite(name); case FUNCTIONAL: return MethodIndex.getFunctionalCallSite(name); case VARIABLE: return MethodIndex.getVariableCallSite(name); case SUPER: return MethodIndex.getSuperCallSite(); case UNKNOWN: } return null; // fallthrough for unknown }
private static CallSite getCallSiteFor(CallType callType, MethAddr methAddr) { assert callType != null: "Calltype should never be null"; String name = methAddr.getName(); switch (callType) { case NORMAL: return MethodIndex.getCallSite(name); case FUNCTIONAL: return MethodIndex.getFunctionalCallSite(name); case VARIABLE: return MethodIndex.getVariableCallSite(name); case SUPER: return MethodIndex.getSuperCallSite(); case UNKNOWN: } return null; // fallthrough for unknown }
protected static CallSite getCallSiteFor(IRScope scope, CallType callType, String name, long callsiteId, boolean hasLiteralClosure, boolean potentiallyRefined) { assert callType != null: "Calltype should never be null"; if (potentiallyRefined) return new RefinedCachingCallSite(name, callType); switch (callType) { case NORMAL: if (IRManager.IR_INLINER && hasLiteralClosure) { return MethodIndex.getProfilingCallSite(name, scope, callsiteId); } else { return MethodIndex.getCallSite(name); } case FUNCTIONAL: return MethodIndex.getFunctionalCallSite(name); case VARIABLE: return MethodIndex.getVariableCallSite(name); case SUPER: return MethodIndex.getSuperCallSite(); case UNKNOWN: } return null; // fallthrough for unknown }
protected static CallSite getCallSiteFor(IRScope scope, CallType callType, String name, long callsiteId, boolean hasLiteralClosure, boolean potentiallyRefined) { assert callType != null: "Calltype should never be null"; if (potentiallyRefined) return new RefinedCachingCallSite(name, callType); switch (callType) { case NORMAL: if (IRManager.IR_INLINER && hasLiteralClosure) { return MethodIndex.getProfilingCallSite(name, scope, callsiteId); } else { return MethodIndex.getCallSite(name); } case FUNCTIONAL: return MethodIndex.getFunctionalCallSite(name); case VARIABLE: return MethodIndex.getVariableCallSite(name); case SUPER: return MethodIndex.getSuperCallSite(); case UNKNOWN: } return null; // fallthrough for unknown }
public static CallSite getCallSiteBootstrap(Lookup lookup, String name, MethodType type, String callName, int callTypeChar) { org.jruby.runtime.CallSite callSite = null; switch (callTypeChar) { case 'N': callSite = MethodIndex.getCallSite(callName); break; case 'F': callSite = MethodIndex.getFunctionalCallSite(callName); break; case 'V': callSite = MethodIndex.getVariableCallSite(callName); break; case 'S': callSite = MethodIndex.getSuperCallSite(); break; } return new ConstantCallSite(constant(org.jruby.runtime.CallSite.class, callSite)); }
public static CallSite getCallSiteBootstrap(Lookup lookup, String name, MethodType type, String callName, int callTypeChar) { org.jruby.runtime.CallSite callSite = null; switch (callTypeChar) { case 'N': callSite = MethodIndex.getCallSite(callName); break; case 'F': callSite = MethodIndex.getFunctionalCallSite(callName); break; case 'V': callSite = MethodIndex.getVariableCallSite(callName); break; case 'S': callSite = MethodIndex.getSuperCallSite(); break; } return new ConstantCallSite(constant(org.jruby.runtime.CallSite.class, callSite)); }