summaryrefslogtreecommitdiff
path: root/mjit.rb
blob: baa107d6dc79eacf94c5d82e0a4d80e229215784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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