public class ReceiveOptArgInstr extends ReceiveArgBase
| Modifier and Type | Field and Description |
|---|---|
int |
argOffset
Starting offset into the args array
|
int |
numUsedArgs
Number of arguments already accounted for
|
argIndex, resultEMPTY_OPERANDS| Constructor and Description |
|---|
ReceiveOptArgInstr(Variable result,
int numUsedArgs,
int argOffset,
int optArgIndex) |
| Modifier and Type | Method and Description |
|---|---|
Instr |
cloneForBlockCloning(InlinerInfo ii)
Clone the instruction so it can be used in a cloned block which is present in a scope that itself
or an ancestor scope (in the case of nested blocks) is being inlined.
|
Instr |
cloneForInlining(InlinerInfo ii)
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).
|
Object |
receiveOptArg(IRubyObject[] args,
int kwArgHashCount) |
String |
toString() |
void |
visit(IRVisitor visitor) |
getArgIndex, getOperands, getResult, updateResultcanBeDeleted, canRaiseException, cloneForInlinedClosure, cloneForInlinedScope, getOperation, getUsedVariables, hasSideEffects, hasUnusedResult, interpret, interpretAndGetNewIPC, isDead, markDead, markUnusedResult, renameVars, simplifyAndGetResult, simplifyOperands, transfersControlpublic final int argOffset
public final int numUsedArgs
public ReceiveOptArgInstr(Variable result, int numUsedArgs, int argOffset, int optArgIndex)
public String toString()
toString in class ReceiveArgBasepublic Instr cloneForInlining(InlinerInfo ii)
InstrcloneForInlining in class Instrii - This object manages renaming of variables and labels, handles
args and return values.public Instr cloneForBlockCloning(InlinerInfo ii)
InstrcloneForBlockCloning in class Instrpublic Object receiveOptArg(IRubyObject[] args, int kwArgHashCount)
Copyright © 2001-2014 JRuby. All Rights Reserved.