Class: Optimize::IR::ArgPositions
- Inherits:
-
Struct
- Object
- Struct
- Optimize::IR::ArgPositions
- Defined in:
- lib/optimize/ir/function.rb
Overview
Holds instruction references for an iseq’s optional-argument position table. References are to IR::Instruction objects by identity so they survive instruction-list mutation.
opt_table — Array<IR::Instruction>, one per optional arg plus one terminating entry.
Each entry points at the instruction where execution begins when
exactly (lead_num + i) positional args were supplied.
Format on disk: VALUE[] (8-byte native uint64 YARV slot indices).
Instance Attribute Summary collapse
-
#opt_table ⇒ Object
Returns the value of attribute opt_table.
Instance Attribute Details
#opt_table ⇒ Object
Returns the value of attribute opt_table
14 15 16 |
# File 'lib/optimize/ir/function.rb', line 14 def opt_table @opt_table end |