Top Fields Constructors Methods
org.jruby.ir.instructions

public Class CheckForLJEInstr

extends NoOperandInstr
Class Inheritance
Imports
org.jruby.ir.IRFlags, .IRScope, .IRVisitor, .Operation, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.runtime.IRRuntimeHelpers, org.jruby.ir.transformations.inlining.CloneInfo, .InlineCloneInfo, org.jruby.runtime.Block, .DynamicScope, .ThreadContext, java.util.EnumSet

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
CheckForLJEInstr(boolean notDefinedWithinMethod)

Method Summary

Modifier and TypeMethod and Description
public void
check(ThreadContext context, DynamicScope dynamicScope, Block block)

public Instr
clone(CloneInfo
This object manages renaming of variables and labels, handles args and return values.
info
)

Implements abstract org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope).

public boolean
computeScopeFlags(IRScope scope, EnumSet<IRFlags> flags)

Overrides org.jruby.ir.instructions.Instr.computeScopeFlags.

Does this instruction do anything the scope is interested in?

public static CheckForLJEInstr
public void
public boolean
public boolean
maybeLambda()
Deprecated

public String[]
public void
Inherited from org.jruby.ir.instructions.NoOperandInstr:
getOperandssetOperand

Field Detail

definedWithinMethodback to summary
private final boolean definedWithinMethod

Constructor Detail

CheckForLJEInstrback to summary
public CheckForLJEInstr(boolean notDefinedWithinMethod)

Method Detail

checkback to summary
public void check(ThreadContext context, DynamicScope dynamicScope, Block block)
cloneback to summary
public Instr clone(CloneInfo info)

Implements abstract org.jruby.ir.instructions.Instr.clone.

Doc from org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.

Parameters
info:CloneInfo

This object manages renaming of variables and labels, handles args and return values.

Returns:Instr

a new instruction that can be used in the target scope.

Annotations
@Override
computeScopeFlagsback to summary
public boolean computeScopeFlags(IRScope scope, EnumSet<IRFlags> flags)

Overrides org.jruby.ir.instructions.Instr.computeScopeFlags.

Doc from org.jruby.ir.instructions.Instr.computeScopeFlags.

Does this instruction do anything the scope is interested in?

Returns:boolean

true if it modified the scope or set any flags.

Annotations
@Override
decodeback to summary
public static CheckForLJEInstr decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.Instr.encode.

Annotations
@Override
isDefinedWithinMethodback to summary
public boolean isDefinedWithinMethod()
maybeLambdaback to summary
public boolean maybeLambda()

Deprecated

Annotations
@Deprecated
toStringNonOperandArgsback to summary
public String[] toStringNonOperandArgs()

Overrides org.jruby.ir.instructions.Instr.toStringNonOperandArgs.

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.Instr.visit.