Top Fields Constructors Methods
org.jruby.ir.instructions

public Class CallInstr

extends CallBase
implements ResultInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.ResultInstr
Known Direct Subclasses
org.jruby.ir.instructions.ClassSuperInstr, org.jruby.ir.instructions.EQQInstr, org.jruby.ir.instructions.InstanceSuperInstr, org.jruby.ir.instructions.MatchInstr, org.jruby.ir.instructions.UnresolvedSuperInstr, org.jruby.ir.instructions.specialized.OneFixnumArgNoBlockCallInstr, org.jruby.ir.instructions.specialized.OneFloatArgNoBlockCallInstr, org.jruby.ir.instructions.specialized.OneOperandArgBlockCallInstr, org.jruby.ir.instructions.specialized.OneOperandArgNoBlockCallInstr, org.jruby.ir.instructions.specialized.TwoOperandArgNoBlockCallInstr, org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr
Imports
org.jruby.RubyInstanceConfig, .RubySymbol, org.jruby.ir.IRScope, .IRVisitor, .Operation, org.jruby.ir.instructions.specialized.OneFixnumArgNoBlockCallInstr, .OneFloatArgNoBlockCallInstr, .OneOperandArgBlockCallInstr, .OneOperandArgNoBlockCallInstr, .TwoOperandArgNoBlockCallInstr, .ZeroOperandArgNoBlockCallInstr, org.jruby.ir.operands.Hash, .NullBlock, .Operand, .Variable, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.runtime.CallSite, .CallType, org.jruby.util.KeyValuePair, java.util.List

Field Summary

Modifier and TypeField and Description
protected transient Variable
Inherited from org.jruby.ir.instructions.CallBase:
argsCountcallSitecallSiteCountercallSiteIdhasClosurename

Constructor Summary

AccessConstructor and Description
public
CallInstr(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined)

protected
CallInstr(IRScope scope, Operation op, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined, CallSite callSite, long callSiteId)

protected
CallInstr(IRScope scope, Operation op, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined)

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
)

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 CallInstr
create(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags)

public static CallInstr
public void
public Variable
public void
public void
Inherited from org.jruby.ir.instructions.CallBase:
blockInliningcanBeEvalcloneCallArgscomputeScopeFlagscontainsArgSplatgetArg1getArgsCountgetCallArgsgetCallSitegetCallSiteForgetCallSiteIdgetCallTypegetClosureArggetClosureArggetFlagsgetIdgetNamegetReceiverhasLiteralClosureinliningBlockedinterpretisAllFixnumsisAllFloatsisPotentiallyRefinedprepareArgumentsprepareArgumentsComplexprepareArgumentsSimpleprepareBlocksetCallSiteIdsimplifyOperandssplatMaptargetRequiresCallersBindingtargetRequiresCallersFrametoStringNonOperandArgs

Field Detail

resultback to summary
protected transient Variable result

Constructor Detail

CallInstrback to summary
public CallInstr(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined)
CallInstrback to summary
protected CallInstr(IRScope scope, Operation op, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined, CallSite callSite, long callSiteId)
CallInstrback to summary
protected CallInstr(IRScope scope, Operation op, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags, boolean potentiallyRefined)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

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
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
createback to summary
public static CallInstr create(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure, int flags)
decodeback to summary
public static CallInstr decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.CallBase.encode.

Annotations
@Override
getResultback to summary
public Variable getResult()

Implements abstract org.jruby.ir.instructions.CallBase.getResult.

Implements org.jruby.ir.instructions.ResultInstr.getResult.

updateResultback to summary
public void updateResult(Variable v)

Implements org.jruby.ir.instructions.ResultInstr.updateResult.

visitback to summary
public void visit(IRVisitor visitor)

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

Annotations
@Override