Top Fields Constructors Methods
org.jruby.ir.instructions

public Class MatchInstr

extends CallInstr
implements FixedArityInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.FixedArityInstr
Imports
org.jruby.RubyInstanceConfig, org.jruby.ir.IRFlags, .IRScope, .IRVisitor, .Operation, org.jruby.ir.operands.NullBlock, .Operand, .Variable, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.runtime.CallSite, .CallType, org.jruby.util.ByteList, java.util.EnumSet

Field Summary

Modifier and TypeField and Description
private static final ByteList
Inherited from org.jruby.ir.instructions.CallInstr:
result

Constructor Summary

AccessConstructor and Description
protected
MatchInstr(IRScope scope, Variable result, Operand receiver, Operand arg, CallSite callSite, long callSiteId)

public
MatchInstr(IRScope scope, Variable result, Operand receiver, Operand arg)

Method Summary

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

Overrides org.jruby.ir.instructions.CallInstr.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.CallBase.computeScopeFlags.

Does this instruction do anything the scope is interested in?

public static MatchInstr
public void
public void
Inherited from org.jruby.ir.instructions.CallInstr:
creategetResultupdateResult

Field Detail

MATCHback to summary
private static final ByteList MATCH

Constructor Detail

MatchInstrback to summary
protected MatchInstr(IRScope scope, Variable result, Operand receiver, Operand arg, CallSite callSite, long callSiteId)
MatchInstrback to summary
public MatchInstr(IRScope scope, Variable result, Operand receiver, Operand arg)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Overrides org.jruby.ir.instructions.CallInstr.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
ii: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.CallBase.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 MatchInstr decode(IRReaderDecoder d)

Hides org.jruby.ir.instructions.CallInstr.decode.

encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.CallInstr.encode.

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

Overrides org.jruby.ir.instructions.CallInstr.visit.

Annotations
@Override