1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/mjit_compiler.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
337 B
Ruby
Raw Normal View History

2022-09-05 00:53:46 -04:00
# frozen_string_literal: true
# TODO: Merge this to mjit.rb
if RubyVM::MJIT.enabled?
begin
require 'etc'
2022-09-05 02:25:26 -04:00
require 'fiddle'
2022-09-05 00:53:46 -04:00
rescue LoadError
return # skip miniruby
end
2022-09-05 02:25:26 -04:00
if Fiddle::SIZEOF_VOIDP == 8
2022-09-05 00:53:46 -04:00
require 'mjit/c_64'
else
require 'mjit/c_32'
end
require "mjit/instruction"
2022-09-05 00:53:46 -04:00
require "mjit/compiler"
end