Examples of compute_MOP_Solution()


Examples of org.jruby.compiler.ir.dataflow.analyses.BindingLoadPlacementProblem.compute_MOP_Solution()

        fsp.compute_MOP_Solution();
        fsp.addStoreAndBindingAllocInstructions();

        BindingLoadPlacementProblem frp = new BindingLoadPlacementProblem();
        frp.setup(c);
        frp.compute_MOP_Solution();
        frp.addLoads();
        //       }
    }
}
View Full Code Here

Examples of org.jruby.compiler.ir.dataflow.analyses.BindingStorePlacementProblem.compute_MOP_Solution()

        IRMethod m = (IRMethod) s;
        //        if (m.requiresBinding()) {
        CFG c = m.getCFG();
        BindingStorePlacementProblem fsp = new BindingStorePlacementProblem();
        fsp.setup(c);
        fsp.compute_MOP_Solution();
        fsp.addStoreAndBindingAllocInstructions();

        BindingLoadPlacementProblem frp = new BindingLoadPlacementProblem();
        frp.setup(c);
        frp.compute_MOP_Solution();
View Full Code Here

Examples of org.jruby.compiler.ir.dataflow.analyses.LiveVariablesProblem.compute_MOP_Solution()

        CFG c = ((IRMethod)s).getCFG();
        LiveVariablesProblem lvp = new LiveVariablesProblem();
      String lvpName = lvp.getName();
        lvp.setup(c);
        lvp.compute_MOP_Solution();
        c.setDataFlowSolution(lvp.getName(), lvp);
//        System.out.println("LVP for " + s + " is: " + lvp);
        for (IRClosure x: ((IRMethod)s).getClosures()) {
        CFG xc = x.getCFG();
        if (xc != null)
View Full Code Here

Examples of org.jruby.compiler.ir.dataflow.analyses.LiveVariablesProblem.compute_MOP_Solution()

        LiveVariablesProblem lvp = (LiveVariablesProblem) c.getDataFlowSolution(DataFlowConstants.LVP_NAME);
       
        if (lvp == null) {
            lvp = new LiveVariablesProblem();
            lvp.setup(c);
            lvp.compute_MOP_Solution();
            c.setDataFlowSolution(lvp.getName(), lvp);
        }
       
        lvp.markDeadInstructions();
    }
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.LiveVariablesProblem.compute_MOP_Solution()

        return scope.getDataFlowSolution(LiveVariablesProblem.NAME);
    }

    public Object execute(IRScope scope, Object... data) {
        LiveVariablesProblem lvp = new LiveVariablesProblem(scope);
        lvp.compute_MOP_Solution();
       
        scope.setDataFlowSolution(LiveVariablesProblem.NAME, lvp);
       
        return lvp;
    }
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.LiveVariablesProblem.compute_MOP_Solution()

                lvp.addDFVar(v);
            }
            lvp.setVarsLiveOnScopeExit(nlVars);
        }

        lvp.compute_MOP_Solution();
        scope.setDataFlowSolution(LiveVariablesProblem.NAME, lvp);

        return lvp;
    }
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.LoadLocalVarPlacementProblem.compute_MOP_Solution()

        slvp.addStores(varRenameMap);

        // Once stores have been added, figure out required loads
        LoadLocalVarPlacementProblem llvp = new LoadLocalVarPlacementProblem();
        llvp.setup(s);
        llvp.compute_MOP_Solution();

        // Add loads,
        llvp.addLoads(varRenameMap);

        // Rename all local var uses with their tmp-var stand-ins
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.LoadLocalVarPlacementProblem.compute_MOP_Solution()

            slvp.addStores(varRenameMap);

            // Once stores have been added, figure out required loads
            LoadLocalVarPlacementProblem llvp = new LoadLocalVarPlacementProblem();
            llvp.setup(s);
            llvp.compute_MOP_Solution();

            // Add loads
            llvp.addLoads(varRenameMap);

            // Rename all local var uses with their tmp-var stand-ins
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.StoreLocalVarPlacementProblem.compute_MOP_Solution()

        // 4. Add loads
        //
        // Order is important since loads in 3. depend on stores in 2.
        StoreLocalVarPlacementProblem slvp = new StoreLocalVarPlacementProblem();
        slvp.setup(s);
        slvp.compute_MOP_Solution();

        // Add stores, assigning an equivalent tmp-var for each local var
        Map<Operand, Operand> varRenameMap = new HashMap<Operand, Operand>();
        slvp.addStores(varRenameMap);
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.StoreLocalVarPlacementProblem.compute_MOP_Solution()

            // 3. Figure out required loads
            // 4. Add loads
            //
            // Order is important since loads in 3. depend on stores in 2.
            slvp.setup(s);
            slvp.compute_MOP_Solution();

            // Add stores, assigning an equivalent tmp-var for each local var
            slvp.addStores(varRenameMap);

            // Once stores have been added, figure out required loads
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.