Package org.jruby.ir.passes
Class DeadCodeElimination
java.lang.Object
org.jruby.ir.passes.CompilerPass
org.jruby.ir.passes.DeadCodeElimination
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(FullInterpreterContext fic, Object... data) Meat of an individual pass.List
<Class<? extends CompilerPass>> getLabel()
What is the user-friendly name of this compiler passShorter labelMethods inherited from class org.jruby.ir.passes.CompilerPass
createPassInstance, createPassInstance, equals, getPassesFromString, hashCode, invalidate, previouslyRun, run, run, run
-
Field Details
-
DEPENDENCIES
-
-
Constructor Details
-
DeadCodeElimination
public DeadCodeElimination()
-
-
Method Details
-
getLabel
Description copied from class:CompilerPass
What is the user-friendly name of this compiler pass- Specified by:
getLabel
in classCompilerPass
-
getShortLabel
Description copied from class:CompilerPass
Shorter label- Overrides:
getShortLabel
in classCompilerPass
-
getDependencies
- Overrides:
getDependencies
in classCompilerPass
-
execute
Description copied from class:CompilerPass
Meat of an individual pass. run will call this after dependency resolution.- Specified by:
execute
in classCompilerPass
- Parameters:
fic
- is the FullInterpreterContext to run this pass ondata
- is the data supplied to this pass to use to execute the pass
-