summaryrefslogtreecommitdiff
path: root/yjit_codegen.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2021-04-22 12:15:52 -0400
committerAlan Wu <[email protected]>2021-10-20 18:19:34 -0400
commitf1b11fa454551403ca74362329d6a0843363fce5 (patch)
tree22e452771d616d82dc02f6c6d0cfd7b1d381ca4b /yjit_codegen.c
parent3e80104024b8663ab99d2571f2cf1cdf054a89f6 (diff)
Comment edits
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r--yjit_codegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index c043d53e9f..1808522f57 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -242,14 +242,14 @@ yjit_gen_exit(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb)
return code_ptr;
}
-// Generate an interpreter to REG_CFP->pc.
+// Generate a continuation for gen_leave() that exits to the interpreter at REG_CFP->pc.
static uint8_t *
yjit_gen_leave_exit(codeblock_t *cb)
{
uint8_t *code_ptr = cb_get_ptr(cb, cb->write_pos);
- // Update the CFP on the EC
- //mov(cb, member_opnd(REG_EC, rb_execution_context_t, cfp), REG_CFP);
+ // Note, gen_leave() fully reconstructs interpreter state before
+ // coming here.
// Every exit to the interpreter should be counted
GEN_COUNTER_INC(cb, leave_interp_return);