Package org.jruby.runtime

Examples of org.jruby.runtime.CallSite


        IRubyObject[] args = ASTInterpreter.setupArgs(runtime, context, argsNode, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite;
        callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, args);

        return args[args.length - 1];
    }
View Full Code Here


        IRubyObject param3 = arg3.interpret(runtime, context, self, aBlock);       
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1, param2, param3);

        return param3;
    }
View Full Code Here

        IRubyObject param3 = arg2.interpret(runtime, context, self, aBlock);       
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1, param2, param3, value);
       
        return runtime.getNil();
    }   
View Full Code Here

        IRubyObject param2 = arg2.interpret(runtime, context, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1, param2);

        return param2;
    }
View Full Code Here

        IRubyObject param2 = arg2.interpret(runtime, context, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1, param2, value);
       
        return runtime.getNil();
    }
View Full Code Here

        IRubyObject param1 = arg1.interpret(runtime, context, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1);

        return param1;
    }
View Full Code Here

        IRubyObject param1 = arg1.interpret(runtime, context, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, param1, value);
       
        return runtime.getNil();
    }
View Full Code Here

        IRubyObject[] args = ASTInterpreter.setupArgs(runtime, context, argsNode, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite;
        callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, args);

        return args[args.length - 1];
    }
View Full Code Here

     *
     * @param io the ruby object
     */
    public IOOutputStream(final IRubyObject io, boolean checkAppend, boolean verifyCanWrite) {
        this.io = io;
        CallSite writeSite = MethodIndex.getFunctionalCallSite("write");
        if (io.respondsTo("write")) {
            writeAdapter = writeSite;
        } else if (checkAppend && io.respondsTo("<<")) {
            writeAdapter = MethodIndex.getFunctionalCallSite("<<");
        } else if (verifyCanWrite) {
View Full Code Here

        IRubyObject[] args = ASTInterpreter.setupArgs(runtime, context, argsNode, self, aBlock);
       
        assert hasMetaClass(receiver) : receiverClassName(receiver);
       
        // If reciever is self then we do the call the same way as vcall
        CallSite callSite;
        callSite = selectCallSite(self, receiver);
        callSite.call(context, self, receiver, args);

        return args[args.length - 1];
    }
View Full Code Here

TOP

Related Classes of org.jruby.runtime.CallSite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.