ruby/lib/ruby_vm/mjit/compiler.rb
2023-03-05 22:11:20 -08:00

16 lines
350 B
Ruby

class RubyVM::MJIT::Compiler
C = RubyVM::MJIT.const_get(:C, false)
INSNS = RubyVM::MJIT.const_get(:INSNS, false)
# @param mem_block [Integer] JIT buffer address
def initialize(mem_block)
@mem_block = mem_block
@write_pos = 0
end
# @param iseq [RubyVM::MJIT::CPointer::Struct]
def compile(iseq)
# TODO: implement
end
end