Package org.teavm.model.util
Class ProgramUtils
java.lang.Object
org.teavm.model.util.ProgramUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Graph
buildControlFlowGraph
(Program program) static Program
copy
(ProgramReader program) static void
copyBasicBlock
(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 void
makeUniqueLabels
(Program program)
-
Method Details
-
buildControlFlowGraph
-
getLocationCFG
-
copy
-
copyBasicBlock
-
copyInstructions
-
copyPhis
-
copyTryCatches
-
getPhiOutputs
-
getVariableDefinitionPlaces
-
makeUniqueLabels
-
createThrowNPEInstructions
-
getVariablesDefinedInBlock
public static List<Variable> getVariablesDefinedInBlock(BasicBlock block, DefinitionExtractor defExtractor)
-