public class ReceiveOptArgInstr extends ReceiveArgBase implements FixedArityInstr
Modifier and Type | Field and Description |
---|---|
int |
preArgs
opt args follow pre args
|
int |
requiredArgs
total number of required args (pre + post)
|
argIndex
result
EMPTY_OPERANDS
Constructor and Description |
---|
ReceiveOptArgInstr(Variable result,
int requiredArgs,
int preArgs,
int optArgIndex) |
Modifier and Type | Method and Description |
---|---|
Instr |
clone(CloneInfo info)
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).
|
static ReceiveOptArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
int |
getPreArgs() |
int |
getRequiredArgs() |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArgument) |
java.lang.String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getArgIndex
getOperands, setOperand
getResult, updateResult
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControl
public final int preArgs
public final int requiredArgs
public ReceiveOptArgInstr(Variable result, int requiredArgs, int preArgs, int optArgIndex)
public java.lang.String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class ReceiveArgBase
public int getPreArgs()
public int getRequiredArgs()
public Instr clone(CloneInfo info)
Instr
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
public static ReceiveOptArgInstr decode(IRReaderDecoder d)
public IRubyObject receiveArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArgument)
receiveArg
in class ReceiveArgBase
Copyright © 2001-2022 JRuby. All Rights Reserved.