public class DeadCodeElimination extends Object
Modifier and Type | Class and Description |
---|---|
class |
DeadCodeElimination.DeadCodeVisitor
Eliminates dead or unreachable code when possible, and makes local
simplifications like changing "
x || true " to "x ". |
static class |
DeadCodeElimination.FindBreakContinueStatementsVisitor
Examines code to find out whether it contains any break or continue
statements.
|
Constructor and Description |
---|
DeadCodeElimination(JProgram program) |
Modifier and Type | Method and Description |
---|---|
static OptimizerStats |
exec(JProgram program) |
static OptimizerStats |
exec(JProgram program,
JMethod method) |
static OptimizerStats |
exec(JProgram program,
OptimizerContext optimizerCtx)
Apply DeadCodeElimination on the set of newly modified methods (obtained from the optimzer
context).
|
public static final String NAME
public DeadCodeElimination(JProgram program)
public static OptimizerStats exec(JProgram program)
public static OptimizerStats exec(JProgram program, JMethod method)
public static OptimizerStats exec(JProgram program, OptimizerContext optimizerCtx)
Copyright © 2018. All rights reserved.