Package org.jruby.ir.instructions.specialized

Examples of org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr


        Operand[] callArgs = getCallArgs();
        if (hasClosure() || containsSplat(callArgs)) return this;
       
        switch (callArgs.length) {
            case 0:
                return new ZeroOperandArgNoBlockCallInstr(this);
            case 1:
                if (isAllFixnums()) return new OneFixnumArgNoBlockCallInstr(this);

                return new OneOperandArgNoBlockCallInstr(this);
        }
View Full Code Here


        Operand[] callArgs = getCallArgs();
        if (containsArgSplat(callArgs)) return this;

        switch (callArgs.length) {
            case 0:
                return hasClosure() ? this : new ZeroOperandArgNoBlockCallInstr(this);
            case 1:
                if (isAllFixnums() && !hasClosure()) return new OneFixnumArgNoBlockCallInstr(this);

                return hasClosure() ? new OneOperandArgBlockCallInstr(this) : new OneOperandArgNoBlockCallInstr(this);
        }
View Full Code Here

TOP

Related Classes of org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr

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.