Package org.jruby.ir.operands

Examples of org.jruby.ir.operands.Boolean


        if (s instanceof IRClosure) {
            // If 'm' is a block scope, a return returns from the closest enclosing method.
            // If this happens to be a module body, the runtime throws a local jump error if the
            // closure is a proc. If the closure is a lambda, then this becomes a normal return.
            IRMethod m = s.getNearestMethod();
            addInstr(s, new RuntimeHelperCall(null, CHECK_FOR_LJE, new Operand[] { new Boolean(m == null) }));
            retVal = processEnsureRescueBlocks(s, retVal);
            addInstr(s, new NonlocalReturnInstr(retVal, m == null ? "--none--" : m.getName()));
        } else if (s.isModuleBody()) {
            IRMethod sm = s.getNearestMethod();
View Full Code Here

TOP

Related Classes of org.jruby.ir.operands.Boolean

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.