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
3225 3226 3227 3228 3229 |
# File 'vm.c', line 3225
static VALUE
mjit_enabled_p(VALUE _)
{
return mjit_enabled ? Qtrue : Qfalse;
}
|
.pause ⇒ Object
3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 |
# File 'vm.c', line 3231
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
3248 3249 3250 3251 3252 |
# File 'vm.c', line 3248
static VALUE
mjit_resume_m(VALUE _)
{
return mjit_resume();
}
|