summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-19 23:57:17 -0700
committerGitHub <noreply@github.com>2022-08-19 23:57:17 -0700
commit485019c2bd02794b484500c78919b0d1230e4a84 (patch)
tree7b4637f8cf52967b6cbb444c07edb17c38875126 /vm_insnhelper.c
parentfc5382d46524bdf901efc8d15ef9faf14bea3ad1 (diff)
Rename mjit_exec to jit_exec (#6262)
* Rename mjit_exec to jit_exec * Rename mjit_exec_slowpath to mjit_check_iseq * Remove mjit_exec references from comments
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 837c71ffd5..68362ddf60 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -4783,16 +4783,16 @@ vm_sendish(
#ifdef MJIT_HEADER
/* When calling ISeq which may catch an exception from JIT-ed
- code, we should not call mjit_exec directly to prevent the
+ code, we should not call jit_exec directly to prevent the
caller frame from being canceled. That's because the caller
frame may have stack values in the local variables and the
cancelling the caller frame will purge them. But directly
- calling mjit_exec is faster... */
+ calling jit_exec is faster... */
if (ISEQ_BODY(GET_ISEQ())->catch_except_p) {
VM_ENV_FLAGS_SET(GET_EP(), VM_FRAME_FLAG_FINISH);
return vm_exec(ec, true);
}
- else if ((val = mjit_exec(ec)) == Qundef) {
+ else if ((val = jit_exec(ec)) == Qundef) {
VM_ENV_FLAGS_SET(GET_EP(), VM_FRAME_FLAG_FINISH);
return vm_exec(ec, false);
}
@@ -4801,9 +4801,8 @@ vm_sendish(
}
#else
/* When calling from VM, longjmp in the callee won't purge any
- JIT-ed caller frames. So it's safe to directly call
- mjit_exec. */
- return mjit_exec(ec);
+ JIT-ed caller frames. So it's safe to directly call jit_exec. */
+ return jit_exec(ec);
#endif
}