Top Description Constructors Methods
org.jruby.ir.instructions

public Class LoadImplicitClosureInstr

extends NoOperandResultBaseInstr
implements FixedArityInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.FixedArityInstr
Imports
org.jruby.ir.IRVisitor, .Operation, org.jruby.ir.operands.Variable, .WrappedIRClosure, org.jruby.ir.persistence.IRReaderDecoder, org.jruby.ir.transformations.inlining.CloneInfo, .InlineCloneInfo, .SimpleCloneInfo

Load the "implicit" closure for this scope. Currently this is always the "block" passed to a body of code on the JVM stack.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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 static LoadImplicitClosureInstr
public void
Inherited from org.jruby.ir.instructions.NoOperandResultBaseInstr:
getOperandssetOperand

Constructor Detail

LoadImplicitClosureInstrback to summary
public LoadImplicitClosureInstr(Variable result)

Method Detail

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
decodeback to summary
public static LoadImplicitClosureInstr decode(IRReaderDecoder d)
visitback to summary
public void visit(IRVisitor visitor)

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

Annotations
@Override