Package org.jruby.compiler.ir.dataflow.analyses

Examples of org.jruby.compiler.ir.dataflow.analyses.LiveVariablesProblem


    {
        if (!(s instanceof IRMethod))
            return;

        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)
          lvp = (LiveVariablesProblem)xc.getDataFlowSolution(lvpName);
View Full Code Here


    public void run(IRScope s) {
        if (!(s instanceof IRMethod)) return;

        CFG c = ((IRMethod) s).getCFG();
        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

TOP

Related Classes of org.jruby.compiler.ir.dataflow.analyses.LiveVariablesProblem

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.