Package org.jruby.ir.instructions

Examples of org.jruby.ir.instructions.CheckArityInstr


        if (s instanceof IRMethod) {
            // FIXME: Expensive to do this explicitly?  But, two advantages:
            // (a) on inlining, we'll be able to get rid of these checks in almost every case.
            // (b) compiler to bytecode will anyway generate this and this is explicit.
            // For now, we are going explicit instruction route.  But later, perhaps can make this implicit in the method setup preamble? 
            s.addInstr(new CheckArityInstr(required, opt, rest));
        }

        // Other args begin at index 0
        int argIndex = 0;
View Full Code Here

TOP

Related Classes of org.jruby.ir.instructions.CheckArityInstr

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.