Top Fields Constructors Methods
org.jruby.ir.passes

public Class UnboxingPass

extends CompilerPass
Class Inheritance
Imports
org.jruby.ir.IRScope, org.jruby.ir.dataflow.analyses.UnboxableOpsAnalysisProblem, 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 boolean
public Object
previouslyRun(FullInterpreterContext fic)

Overrides org.jruby.ir.passes.CompilerPass.previouslyRun.

If this pass has been previous run, then return the data from that last run.

Inherited from org.jruby.ir.passes.CompilerPass:
createPassInstancecreatePassInstanceequalsgetPassesFromStringgetShortLabelhashCodeinvalidaterunrunrun

Field Detail

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

Constructor Detail

UnboxingPassback to summary
public UnboxingPass()

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

invalidateback to summary
public boolean invalidate(IRScope scope)
previouslyRunback to summary
public Object previouslyRun(FullInterpreterContext fic)

Overrides org.jruby.ir.passes.CompilerPass.previouslyRun.

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

If this pass has been previous run, then return the data from that last run. Specific scopes can override this behavior.

Returns:Object

data or null if it needs to be run

Annotations
@Override