public class CheckArityInstr extends Instr
Modifier and Type | Field and Description |
---|---|
int |
opt |
int |
required |
int |
rest |
EMPTY_OPERANDS
Constructor and Description |
---|
CheckArityInstr(int required,
int opt,
int rest) |
Modifier and Type | Method and Description |
---|---|
void |
checkArity(Ruby runtime,
int numArgs) |
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 |
cloneForInlinedScope(InlinerInfo ii)
Clone the instruction (present in a method/closure) so it can be inlined into another scope.
|
Operand[] |
getOperands() |
String |
toString() |
void |
visit(IRVisitor visitor) |
canBeDeleted, canRaiseException, cloneForInlinedClosure, cloneForInlining, getOperation, getUsedVariables, hasSideEffects, hasUnusedResult, interpret, interpretAndGetNewIPC, isDead, markDead, markUnusedResult, renameVars, simplifyAndGetResult, simplifyOperands, transfersControl
public Operand[] getOperands()
getOperands
in class Instr
public Instr cloneForInlinedScope(InlinerInfo ii)
Instr
cloneForInlinedScope
in class Instr
public Instr cloneForBlockCloning(InlinerInfo ii)
Instr
cloneForBlockCloning
in class Instr
public void checkArity(Ruby runtime, int numArgs)
Copyright © 2001-2016 JRuby. All Rights Reserved.