ruby/lib/ruby_vm/mjit/compiler.rb

16 lines
350 B
Ruby
Raw Normal View History

2022-12-11 21:16:33 -08:00
class RubyVM::MJIT::Compiler
2022-12-11 21:32:24 -08:00
C = RubyVM::MJIT.const_get(:C, false)
INSNS = RubyVM::MJIT.const_get(:INSNS, false)
2022-09-04 21:53:46 -07:00
2022-12-11 21:32:24 -08:00
# @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]
2022-12-11 21:16:33 -08:00
def compile(iseq)
# TODO: implement
2022-09-04 21:53:46 -07:00
end
end