public class CheckArityInstr extends OneOperandInstr implements FixedArityInstr
| Modifier and Type | Field and Description |
|---|---|
int |
opt |
int |
required |
boolean |
rest |
int |
restKey |
EMPTY_OPERANDS| Constructor and Description |
|---|
CheckArityInstr(int required,
int opt,
boolean rest,
int restKey,
Variable keywords) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkArity(ThreadContext context,
IRubyObject self,
StaticScope scope,
DynamicScope dynamicScope,
IRubyObject[] args,
Block block,
java.lang.Object[] temp) |
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 CheckArityInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
Variable |
getKeywords() |
java.lang.String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getOperand1, getOperands, setOperand, setOperand1canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControlpublic final int required
public final int opt
public final boolean rest
public final int restKey
public CheckArityInstr(int required,
int opt,
boolean rest,
int restKey,
Variable keywords)
public Variable getKeywords()
public java.lang.String[] toStringNonOperandArgs()
toStringNonOperandArgs in class Instrpublic Instr clone(CloneInfo info)
Instrpublic void encode(IRWriterEncoder e)
public static CheckArityInstr decode(IRReaderDecoder d)
public void checkArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, java.lang.Object[] temp)
Copyright © 2001-2023 JRuby. All Rights Reserved.