ruby/lib/ruby_vm/mjit/jit_state.rb

10 lines
157 B
Ruby
Raw Normal View History

2022-12-28 13:50:24 -08:00
module RubyVM::MJIT
class JITState < Struct.new(
:pc, # @param [Integer]
)
def operand(index)
C.VALUE.new(pc)[index + 1]
end
end
2022-12-26 14:09:45 -08:00
end