Package org.jruby.runtime

Examples of org.jruby.runtime.InterpretedIRBlockBody


        startLabel = getNewLabel("_CLOSURE_START");
        endLabel = getNewLabel("_CLOSURE_END");
        closureId = lexicalParent.getNextClosureId();
        setName("_CLOSURE_" + closureId);

        this.body = new InterpretedIRBlockBody(this, arity, argumentType);
    }
View Full Code Here


        this.closureId = lexicalParent.getNextClosureId();
        setName("_CLOSURE_CLONE_" + closureId);
        this.startLabel = getNewLabel(getName() + "_START");
        this.endLabel = getNewLabel(getName() + "_END");
        this.body = (c.body instanceof InterpretedIRBlockBody19) ? new InterpretedIRBlockBody19(this, c.body.arity(), c.body.getArgumentType())
                                                                 : new InterpretedIRBlockBody(this, c.body.arity(), c.body.getArgumentType());
        this.addedGEBForUncaughtBreaks = false;
    }
View Full Code Here

       
        if (getManager().isDryRun()) {
            this.body = null;
        } else {
            this.body = is1_9 ? new InterpretedIRBlockBody19(this, arity, argumentType)
                              : new InterpretedIRBlockBody(this, arity, argumentType);
            if ((staticScope != null) && !isForLoopBody) ((IRStaticScope)staticScope).setIRScope(this);
        }

        // set nesting depth -- after isForLoopBody value is set
        int n = 0;
View Full Code Here

        this.startLabel = getNewLabel(getName() + "_START");
        this.endLabel = getNewLabel(getName() + "_END");
        if (getManager().isDryRun()) {
            this.body = null;
        } else {
            this.body = new InterpretedIRBlockBody(this, c.body.arity());
        }
        this.blockArgs = new ArrayList<>();
        this.keywordArgs = new ArrayList<>();
        this.arity = c.arity;
    }
View Full Code Here

        lexicalParent.addClosure(this);

        if (getManager().isDryRun()) {
            this.body = null;
        } else {
            this.body = new InterpretedIRBlockBody(this, arity);
            if (staticScope != null && !isBeginEndBlock) {
                staticScope.setIRScope(this);
                staticScope.setScopeType(this.getScopeType());
            }
        }
View Full Code Here

TOP

Related Classes of org.jruby.runtime.InterpretedIRBlockBody

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.