Prepare a JIT buffer

This commit is contained in:
Takashi Kokubun 2022-12-11 21:32:24 -08:00
parent 9c2f612017
commit baa120ee80
2 changed files with 16 additions and 4 deletions

View file

@ -1,7 +1,12 @@
class RubyVM::MJIT::Compiler
C = RubyVM::MJIT.const_get(:C, false)
INSNS = RubyVM::MJIT.const_get(:INSNS, false)
def initialize = freeze
# @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)