Package org.teavm.model.util
Class ProgramUtils
java.lang.Object
org.teavm.model.util.ProgramUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphbuildControlFlowGraph(Program program) static Programcopy(ProgramReader program) static voidcopyBasicBlock(BasicBlockReader block, BasicBlock target) static List<Instruction> copyInstructions(Instruction from, Instruction to, Program target) copyPhis(BasicBlockReader block, Program target) static List<TryCatchBlock> copyTryCatches(BasicBlockReader block, Program target) static List<Instruction> createThrowNPEInstructions(Program program, TextLocation location) static ControlFlowEntry[]getLocationCFG(Program program) getPhiOutputs(Program program) static BasicBlock[]getVariableDefinitionPlaces(Program program) getVariablesDefinedInBlock(BasicBlock block, DefinitionExtractor defExtractor) static voidmakeUniqueLabels(Program program) static voidtruncateBlock(Instruction instruction)
-
Method Details
-
buildControlFlowGraph
-
getLocationCFG
-
copy
-
copyBasicBlock
-
copyInstructions
-
copyPhis
-
copyTryCatches
-
getPhiOutputs
-
getVariableDefinitionPlaces
-
makeUniqueLabels
-
createThrowNPEInstructions
-
getVariablesDefinedInBlock
public static List<Variable> getVariablesDefinedInBlock(BasicBlock block, DefinitionExtractor defExtractor) -
truncateBlock
-