Class: Optimize::IR::ArgPositions

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#opt_tableObject

Returns the value of attribute opt_table

Returns:

  • (Object)

    the current value of opt_table



14
15
16
# File 'lib/optimize/ir/function.rb', line 14

def opt_table
  @opt_table
end