mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Prepare a JIT buffer
This commit is contained in:
parent
9c2f612017
commit
baa120ee80
2 changed files with 16 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue