org.jruby.compiler.ir.dataflow.DataFlowConstants Maven / Gradle / Ivy
package org.jruby.compiler.ir.dataflow;
import org.jruby.compiler.ir.dataflow.analyses.LiveVariablesProblem;
import org.jruby.compiler.ir.dataflow.analyses.BindingLoadPlacementProblem;
import org.jruby.compiler.ir.dataflow.analyses.BindingStorePlacementProblem;
import org.jruby.compiler.ir.operands.Operand;
public class DataFlowConstants
{
public static final String LVP_NAME = (new LiveVariablesProblem()).getName();
public static final String BLP_NAME = (new BindingLoadPlacementProblem()).getName();
public static final String BSP_NAME = (new BindingStorePlacementProblem()).getName();
/* Lattice TOP, BOTTOM, ANY values -- these will be used during dataflow analyses */
public static final Operand TOP = new LatticeTop();
public static final Operand BOTTOM = new LatticeBottom();
public static final Operand ANY = new Anything();
private static class LatticeBottom extends Operand
{
LatticeBottom() { }
public String toString() { return "bottom"; }
}
private static class LatticeTop extends Operand
{
LatticeTop() { }
public String toString() { return "top"; }
}
private static class Anything extends Operand
{
Anything() { }
public String toString() { return "anything"; }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy