Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.passes;
 
 import java.util.List;
 
 
 public class LiveVariableAnalysis extends CompilerPass {
    public static List<Class<? extends CompilerPass>> DEPENDENCIES = Arrays.<Class<? extends CompilerPass>>asList(CFGBuilder.class);
    @Override
    public String getLabel() {
        return "Live Variable Analysis";
    }
    @Override
    public List<Class<? extends CompilerPass>> getDependencies() {
        return ;
    }
    @Override
    public Object previouslyRun(IRScope scope) {
        return scope.getDataFlowSolution(.);
    }
    @Override
    public Object execute(IRScope scopeObject... data) {
        LiveVariablesProblem lvp = new LiveVariablesProblem(scope);
        lvp.compute_MOP_Solution();
        scope.setDataFlowSolution(.lvp);
        return lvp;
    }
    @Override
    public void invalidate(IRScope scope) {
        scope.setDataFlowSolution(.null);
    }
New to GrepCode? Check out our FAQ X