public class ReceiveKeywordArgInstr extends ReceiveArgBase implements FixedArityInstr
| Modifier and Type | Field and Description |
|---|---|
RubySymbol |
key |
int |
required |
resultEMPTY_OPERANDS| Constructor and Description |
|---|
ReceiveKeywordArgInstr(Variable result,
Variable keyword,
RubySymbol key,
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,
java.util.EnumSet<IRFlags> flags)
Does this instruction do anything the scope is interested in?
|
static ReceiveKeywordArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
java.lang.String |
getId() |
RubySymbol |
getKey() |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
StaticScope currScope,
java.lang.Object[] temp,
IRubyObject[] args,
boolean ruby2keyword) |
java.lang.String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getKeywordsgetOperand1, getOperands, setOperand, setOperand1getResult, updateResultcanBeDeletedFromScope, canRaiseException, cloneOperands, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControlpublic final RubySymbol key
public final int required
public ReceiveKeywordArgInstr(Variable result, Variable keyword, RubySymbol key, int required)
public java.lang.String[] toStringNonOperandArgs()
toStringNonOperandArgs in class Instrpublic boolean computeScopeFlags(IRScope scope, java.util.EnumSet<IRFlags> flags)
InstrcomputeScopeFlags in class Instrpublic java.lang.String getId()
public RubySymbol getKey()
public Instr clone(CloneInfo ii)
Instrpublic void encode(IRWriterEncoder e)
encode in class OneOperandResultBaseInstrpublic static ReceiveKeywordArgInstr decode(IRReaderDecoder d)
public IRubyObject receiveArg(ThreadContext context, IRubyObject self, DynamicScope currDynScope, StaticScope currScope, java.lang.Object[] temp, IRubyObject[] args, boolean ruby2keyword)
receiveArg in interface ArgReceiverreceiveArg in class ReceiveArgBaseCopyright © 2001-2023 JRuby. All Rights Reserved.