summaryrefslogtreecommitdiff
path: root/mjit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.rb')
-rw-r--r--mjit.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/mjit.rb b/mjit.rb
deleted file mode 100644
index 64c1c69c1a..0000000000
--- a/mjit.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-module RubyVM::MJIT
- def self.enabled?
- Primitive.cexpr! 'RBOOL(mjit_enabled)'
- end
-
- def self.pause(wait: true)
- Primitive.cexpr! 'mjit_pause(RTEST(wait))'
- end
-
- def self.resume
- Primitive.cexpr! 'mjit_resume()'
- end
-end
-
-if RubyVM::MJIT.enabled?
- begin
- require 'fiddle'
- require 'fiddle/import'
- rescue LoadError
- return # miniruby doesn't support MJIT
- end
-
- RubyVM::MJIT::C = Object.new # forward declaration for mjit/compiler
- require "mjit/c_type"
- require "mjit/instruction"
- require "mjit/compiler"
-
- module RubyVM::MJIT
- private_constant(*constants)
- end
-end