Package org.jruby.ir.instructions

Examples of org.jruby.ir.instructions.BreakInstr


                    break;
                }

                // --------- Return flavored instructions --------
                case BREAK: {
                    BreakInstr bi = (BreakInstr)instr;
                    IRubyObject rv = (IRubyObject)bi.getReturnValue().retrieve(context, self, currDynScope, temp);
                    // This also handles breaks in lambdas -- by converting them to a return
                    return IRRuntimeHelpers.initiateBreak(context, scope, bi.getScopeToReturnTo(), rv, blockType);
                }
                case RETURN: {
                    return (IRubyObject)((ReturnBase)instr).getReturnValue().retrieve(context, self, currDynScope, temp);
                }
                case NONLOCAL_RETURN: {
View Full Code Here

TOP

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

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.