Module: RubyVM::MJIT
- Defined in:
- vm.c
Class Method Summary collapse
-
.enabled? ⇒ Boolean
Returns true if JIT is enabled.
- .pause ⇒ Object
- .resume ⇒ Object
Class Method Details
.enabled? ⇒ Boolean
Returns true if JIT is enabled
3201 3202 3203 3204 3205 |
# File 'vm.c', line 3201
static VALUE
mjit_enabled_p(VALUE _)
{
return mjit_enabled ? Qtrue : Qfalse;
}
|
.pause ⇒ Object
3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 |
# File 'vm.c', line 3207
static VALUE
mjit_pause_m(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE options = Qnil;
VALUE wait = Qtrue;
rb_scan_args(argc, argv, "0:", &options);
if (!NIL_P(options)) {
static ID keyword_ids[1];
if (!keyword_ids[0])
keyword_ids[0] = rb_intern("wait");
rb_get_kwargs(options, keyword_ids, 0, 1, &wait);
}
return mjit_pause(RTEST(wait));
}
|
.resume ⇒ Object
3224 3225 3226 3227 3228 |
# File 'vm.c', line 3224
static VALUE
mjit_resume_m(VALUE _)
{
return mjit_resume();
}
|