summaryrefslogtreecommitdiff
path: root/mjit_compiler.rb
blob: 51dc9e774f7159ae377272aebf59469e90c5bb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true
# TODO: Merge this to mjit.rb
if RubyVM::MJIT.enabled?
  begin
    require 'fiddle'
    require 'fiddle/import'
  rescue LoadError
    return # skip miniruby
  end

  require "mjit/c_type"
  require "mjit/instruction"
  require "mjit/compiler"
end