123456789_123456789_123456789_123456789_123456789_

Module: RubyVM::RJIT

Relationships & Source Files
Namespace Children
Classes:
Defined in: rjit_c.rb,
rjit.rb

Overview

Part of this file is generated by tool/rjit/bindgen.rb. Run make rjit-bindgen to update code between “RJIT bindgen begin” and “RJIT bindgen end”.

Class Attribute Summary

Class Method Summary

  • .enable

    Start JIT compilation after --rjit-disable.

Class Attribute Details

.enabled?Boolean (readonly)

Return true if RJIT is enabled.

[ GitHub ]

  
# File 'rjit.rb', line 3

def self.enabled?
  Primitive.cexpr! 'RBOOL(rb_rjit_enabled)'
end

Class Method Details

.enable

Start JIT compilation after --rjit-disable.

[ GitHub ]

  
# File 'rjit.rb', line 8

def self.enable
  Primitive.cstmt! %{
    rb_rjit_call_p = true;
    return Qnil;
  }
end