Package org.jruby.compiler.ir.operands

Examples of org.jruby.compiler.ir.operands.Variable


            for (Instr i: bb.getInstrs()) {
                for (Variable v : i.getUsedVariables()) {
                    if (v instanceof LocalVariable)
                        _usedLocalVars.add(v);
                }
                Variable v = i.getResult();
                if ((v != null) && (v instanceof LocalVariable)) _definedLocalVars.add(v);
            }
        }

        for (IRClosure cl: getScope().getClosures()) {
View Full Code Here


        return clonedBB;
    }

    public void processClosureArgAndReturnInstrs(InlinerInfo ii, YieldInstr yi) {
        Variable  yieldResult = ii.getRenamedVariable(yi.result);
        Operand[] yieldArgs   = yi.getOperands();

        for (ListIterator<Instr> it = ((ArrayList<Instr>)_instrs).listIterator(); it.hasNext(); ) {
            Instr i = it.next();
            if (i instanceof ClosureReturnInstr) {
View Full Code Here

TOP

Related Classes of org.jruby.compiler.ir.operands.Variable

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.