summaryrefslogtreecommitdiff
path: root/lib/ruby_vm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r--lib/ruby_vm/mjit/compiler.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb
index 7aea23595c..cb2930246a 100644
--- a/lib/ruby_vm/mjit/compiler.rb
+++ b/lib/ruby_vm/mjit/compiler.rb
@@ -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)