diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-27 08:51:56 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-27 08:51:56 +0000 |
commit | e09bf11f6ec28785bd1ab55d32db1162a00522dc (patch) | |
tree | f90a5c384e454e0e3a8748c7bab8eae7e6e41f78 /mjit.h | |
parent | 0d753d4f293c65855bcefb4db38e94126740e240 (diff) |
mjit.c: use NOT_COMPILED_JIT_ISEQ_FUNC for unloaded
units, renaming it from NOT_COMPILABLE_JIT_ISEQ_FUNC.
NOT_READY_JIT_ISEQ_FUNC is for ones being compiled, so
mjit_get_iseq_func treats it specially and it shouldn't be used for the
purpose.
I renamed it instead of adding a new one because I'm not sure about the
impact for the performance by increasing the switch branches in mjit_exec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -19,8 +19,9 @@ enum rb_mjit_iseq_func { /* ISEQ is already queued for the machine code generation but the code is not ready yet for the execution */ NOT_READY_JIT_ISEQ_FUNC = 1, - /* ISEQ included not compilable insn or some assertion failed */ - NOT_COMPILABLE_JIT_ISEQ_FUNC = 2, + /* ISEQ included not compilable insn, some internal assertion failed + or the unit is unloaded */ + NOT_COMPILED_JIT_ISEQ_FUNC = 2, /* End mark */ LAST_JIT_ISEQ_FUNC = 3 }; @@ -116,7 +117,7 @@ mjit_exec(rb_execution_context_t *ec) } return Qundef; case NOT_READY_JIT_ISEQ_FUNC: - case NOT_COMPILABLE_JIT_ISEQ_FUNC: + case NOT_COMPILED_JIT_ISEQ_FUNC: return Qundef; default: /* to avoid warning with LAST_JIT_ISEQ_FUNC */ break; |