Skip to content

Commit 62d046f

Browse files
committed
Comment edits
1 parent dfbfc30 commit 62d046f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yjit_codegen.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ yjit_gen_exit(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb)
242242
return code_ptr;
243243
}
244244

245-
// Generate an interpreter to REG_CFP->pc.
245+
// Generate a continuation for gen_leave() that exits to the interpreter at REG_CFP->pc.
246246
static uint8_t *
247247
yjit_gen_leave_exit(codeblock_t *cb)
248248
{
249249
uint8_t *code_ptr = cb_get_ptr(cb, cb->write_pos);
250250

251-
// Update the CFP on the EC
252-
//mov(cb, member_opnd(REG_EC, rb_execution_context_t, cfp), REG_CFP);
251+
// Note, gen_leave() fully reconstructs interpreter state before
252+
// coming here.
253253

254254
// Every exit to the interpreter should be counted
255255
GEN_COUNTER_INC(cb, leave_interp_return);

0 commit comments

Comments
 (0)