Top Fields Constructors Methods
org.jruby.ir.passes

public Class DeadCodeElimination

extends CompilerPass
Class Inheritance
Imports
org.jruby.ir.dataflow.analyses.LiveVariablesProblem, org.jruby.ir.interpreter.FullInterpreterContext, java.util.Arrays, .Collections, .List

Field Summary

Modifier and TypeField and Description
public static final List<Class<? extends CompilerPass>>
Inherited from org.jruby.ir.passes.CompilerPass:
LOG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
execute(FullInterpreterContext
is the FullInterpreterContext to run this pass on
fic
,
Object...
is the data supplied to this pass to use to execute the pass
data
)

Implements abstract org.jruby.ir.passes.CompilerPass.execute.

Meat of an individual pass.

public List<Class<? extends CompilerPass>>
public String
getLabel()

Implements abstract org.jruby.ir.passes.CompilerPass.getLabel.

What is the user-friendly name of this compiler pass

public String
Inherited from org.jruby.ir.passes.CompilerPass:
createPassInstancecreatePassInstanceequalsgetPassesFromStringhashCodeinvalidatepreviouslyRunrunrunrun

Field Detail

DEPENDENCIESback to summary
public static final List<Class<? extends CompilerPass>> DEPENDENCIES

Constructor Detail

DeadCodeEliminationback to summary
public DeadCodeElimination()

Method Detail

executeback to summary
public Object execute(FullInterpreterContext fic, Object... data)

Implements abstract org.jruby.ir.passes.CompilerPass.execute.

Doc from org.jruby.ir.passes.CompilerPass.execute.

Meat of an individual pass. run will call this after dependency resolution.

Parameters
fic:FullInterpreterContext

is the FullInterpreterContext to run this pass on

data:Object[]

is the data supplied to this pass to use to execute the pass

Annotations
@Override
getDependenciesback to summary
public List<Class<? extends CompilerPass>> getDependencies()

Overrides org.jruby.ir.passes.CompilerPass.getDependencies.

Annotations
@Override
getLabelback to summary
public String getLabel()

Implements abstract org.jruby.ir.passes.CompilerPass.getLabel.

Doc from org.jruby.ir.passes.CompilerPass.getLabel.

What is the user-friendly name of this compiler pass

getShortLabelback to summary
public String getShortLabel()

Overrides org.jruby.ir.passes.CompilerPass.getShortLabel.

Doc from org.jruby.ir.passes.CompilerPass.getShortLabel.

Shorter label

Annotations
@Override