Package org.jruby.ir.instructions
Class CheckArityInstr
java.lang.Object
org.jruby.ir.instructions.Instr
org.jruby.ir.instructions.OneOperandInstr
org.jruby.ir.instructions.CheckArityInstr
- All Implemented Interfaces:
FixedArityInstr
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
final int
final boolean
final int
Fields inherited from class org.jruby.ir.instructions.Instr
EMPTY_OPERANDS
-
Constructor Summary
ConstructorsConstructorDescriptionCheckArityInstr
(int required, int opt, boolean rest, int restKey, Operand keywords) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkArity
(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp) 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
void
String[]
void
Methods inherited from class org.jruby.ir.instructions.OneOperandInstr
getOperand1, getOperands, setOperand, setOperand1
Methods inherited from class org.jruby.ir.instructions.Instr
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyInstr, simplifyOperands, simplifyOperands, toString, transfersControl
-
Field Details
-
required
public final int required -
opt
public final int opt -
rest
public final boolean rest -
restKey
public final int restKey
-
-
Constructor Details
-
CheckArityInstr
-
-
Method Details
-
getKeywords
-
toStringNonOperandArgs
- Overrides:
toStringNonOperandArgs
in classInstr
-
clone
Description copied from class:Instr
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). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode. -
encode
-
decode
-
checkArity
public void checkArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp) -
visit
-