Report unknown --ujit-* options
This commit is contained in:
parent
b7f93e81df
commit
a14015e9b5
4
ruby.c
4
ruby.c
@ -1041,6 +1041,10 @@ setup_ujit_options(const char *s, struct rb_ujit_options *ujit_opt)
|
|||||||
if (opt_match_noarg(s, l, "stats")) {
|
if (opt_match_noarg(s, l, "stats")) {
|
||||||
ujit_opt->gen_stats = true;
|
ujit_opt->gen_stats = true;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
rb_raise(rb_eRuntimeError,
|
||||||
|
"invalid ujit option `%s' (--help will show valid ujit options)", s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USE_MJIT
|
#if USE_MJIT
|
||||||
|
@ -180,6 +180,7 @@ ujit_gen_block(ctx_t* ctx, block_t* block)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if RUBY_DEBUG
|
#if RUBY_DEBUG
|
||||||
|
// Count instructions executed by the JIT
|
||||||
mov(cb, REG0, const_ptr_opnd((void *)&rb_ujit_exec_insns_count));
|
mov(cb, REG0, const_ptr_opnd((void *)&rb_ujit_exec_insns_count));
|
||||||
add(cb, mem_opnd(64, REG0, 0), imm_opnd(1));
|
add(cb, mem_opnd(64, REG0, 0), imm_opnd(1));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user