public class ReceiveKeywordArgInstr extends ReceiveArgBase implements FixedArityInstr
Modifier and Type | Field and Description |
---|---|
String |
argName |
int |
required |
argIndex
result
EMPTY_OPERANDS, operands
Constructor and Description |
---|
ReceiveKeywordArgInstr(Variable result,
String argName,
int required) |
Modifier and Type | Method and Description |
---|---|
Instr |
clone(CloneInfo 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).
|
boolean |
computeScopeFlags(IRScope scope)
Does this instruction do anything the scope is interested in?
|
static ReceiveKeywordArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArgument) |
String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getArgIndex
getResult, updateResult
canBeDeleted, canRaiseException, cloneOperands, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, toString, transfersControl
public final String argName
public final int required
public String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class Instr
public boolean computeScopeFlags(IRScope scope)
Instr
computeScopeFlags
in class Instr
public Instr clone(CloneInfo ii)
Instr
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
public static ReceiveKeywordArgInstr decode(IRReaderDecoder d)
public IRubyObject receiveArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArgument)
receiveArg
in class ReceiveArgBase
Copyright © 2001-2015 JRuby. All Rights Reserved.