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)
|
2022-11-28 21:33:55 -08:00
|
|
|
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
|
2022-11-28 21:33:55 -08:00
|
|
|
|
|
|
|
# @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
|