private CallSite jcreateSite() { // most of the time we won't need to instantiate CallSite callSite = jcreateSite; if (callSite == null) { callSite = jcreateSite = MethodIndex.getFunctionalCallSite("__jcreate!"); } return callSite; }
public static CallSite[] setFunctionalCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getFunctionalCallSite(name); return callSites; }
public Node setIterNode(Node iterNode) { this.iterNode = iterNode; callAdapter = MethodIndex.getFunctionalCallSite(callAdapter.methodName); return this; }
private CallSite jcreateSite() { // most of the time we won't need to instantiate CallSite callSite = jcreateSite; if (callSite == null) { callSite = jcreateSite = MethodIndex.getFunctionalCallSite("__jcreate!"); } return callSite; }
public Node setIterNode(Node iterNode) { this.iterNode = iterNode; callAdapter = MethodIndex.getFunctionalCallSite(callAdapter.methodName); return this; }
public static CallSite[] setFunctionalCallSite(CallSite[] callSites, int index, String name) { callSites[index] = MethodIndex.getFunctionalCallSite(name); return callSites; }
protected FCallNode(ISourcePosition position, String name, Node argsNode, Node iterNode) { super(position); setArgsNode(argsNode); this.iterNode = iterNode; this.callAdapter = MethodIndex.getFunctionalCallSite(name); }
protected FCallNode(ISourcePosition position, String name, Node argsNode, Node iterNode) { super(position); setArgsNode(argsNode); this.iterNode = iterNode; this.callAdapter = MethodIndex.getFunctionalCallSite(name); }
protected CallSite initWriteSite() { // no call site use here since this will only be called once if(io.respondsTo("write")) { return MethodIndex.getFunctionalCallSite("write"); } else if (io.respondsTo("<<")) { return MethodIndex.getFunctionalCallSite("<<"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `write' method"); } }
protected CallSite initWriteSite() { if(io.respondsTo("write")) { return MethodIndex.getFunctionalCallSite("write"); } else if (io.respondsTo("<<")) { return MethodIndex.getFunctionalCallSite("<<"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `write' method"); } }
protected CallSite initWriteSite() { // no call site use here since this will only be called once if(io.respondsTo("write")) { return MethodIndex.getFunctionalCallSite("write"); } else if (io.respondsTo("<<")) { return MethodIndex.getFunctionalCallSite("<<"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `write' method"); } }
protected CallSite initWriteSite() { if(io.respondsTo("write")) { return MethodIndex.getFunctionalCallSite("write"); } else if (io.respondsTo("<<")) { return MethodIndex.getFunctionalCallSite("<<"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `write' method"); } }
protected CallSite initReadSite(String readMethod) { // no call site use here since this will only be called once if(io.respondsTo(readMethod)) { return MethodIndex.getFunctionalCallSite(readMethod); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `" + readMethod + "' method"); } }
protected CallSite initReadSite(String readMethod) { // no call site use here since this will only be called once if(io.respondsTo(readMethod)) { return MethodIndex.getFunctionalCallSite(readMethod); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `" + readMethod + "' method"); } }
protected CallSite initReadSite() { if(io.respondsTo("read")) { return MethodIndex.getFunctionalCallSite("read"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `read' method"); } }
protected CallSite initReadSite() { if(io.respondsTo("read")) { return MethodIndex.getFunctionalCallSite("read"); } else { throw new IllegalArgumentException(io.getMetaClass() + "not coercible to " + getClass().getSimpleName() + ": no `read' method"); } }
public SymbolProcBody(Ruby runtime, String symbol) { super(runtime.getStaticScopeFactory().getDummyScope(), Signature.OPTIONAL); this.site = MethodIndex.getFunctionalCallSite(symbol); }
public SymbolProcBody(Ruby runtime, String symbol) { super(runtime.getStaticScopeFactory().getDummyScope(), Signature.OPTIONAL); this.site = MethodIndex.getFunctionalCallSite(symbol); }
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 }