Skip to content

Commit 5ed796d

Browse files
authored
Comment edits
1 parent 8cb8c9b commit 5ed796d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

yjit_codegen.c

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

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

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

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

0 commit comments

Comments
 (0)