mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mjit.c: unify the variable name with method name
`RubyVM::MJIT.enabled?`. It's set to be TRUE even before initialization is finished. So it was actually not "mjit initialized predicate". This flag is also used to check whether JIT-ed code should be called or not, but I'm going to split the responsibility to another flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
359dd59db2
commit
06f54f0303
4 changed files with 23 additions and 23 deletions
4
mjit.h
4
mjit.h
|
|
@ -53,7 +53,7 @@ typedef VALUE (*mjit_func_t)(rb_execution_context_t *, rb_control_frame_t *);
|
|||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
extern struct mjit_options mjit_opts;
|
||||
extern int mjit_init_p;
|
||||
extern int mjit_enabled;
|
||||
|
||||
extern void mjit_add_iseq_to_process(const rb_iseq_t *iseq);
|
||||
extern mjit_func_t mjit_get_iseq_func(struct rb_iseq_constant_body *body);
|
||||
|
|
@ -94,7 +94,7 @@ mjit_exec(rb_execution_context_t *ec)
|
|||
long unsigned total_calls;
|
||||
mjit_func_t func;
|
||||
|
||||
if (!mjit_init_p)
|
||||
if (!mjit_enabled)
|
||||
return Qundef;
|
||||
|
||||
iseq = ec->cfp->iseq;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue