Skip to content

Commit

Permalink
YJIT: No need to RESTORE_REG now that we reject tailcalls
Browse files Browse the repository at this point in the history
Thanks to Kokubun for noticing.

Follow-up: b0711b1
  • Loading branch information
XrXr committed Jan 29, 2024
1 parent 3fb7410 commit 1cc47c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vm_exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ default: \
/* don't run tailcalls since that breaks FINISH */ \
if (val == Qundef && GET_CFP() != ec->cfp && (func = jit_compile(ec))) { \
val = func(ec, ec->cfp); \
RESTORE_REGS(); /* fix cfp for tailcall */ \
if (ec->tag->state) THROW_EXCEPTION(val); \
} \
} while (0)
Expand Down

0 comments on commit 1cc47c4

Please sign in to comment.