YJIT: No need to RESTORE_REG now that we reject tailcalls

Thanks to Kokubun for noticing.

Follow-up: b0711b1cf152afad0a480ee2f9bedd142a0d24ac
This commit is contained in:
Alan Wu 2024-01-29 16:42:03 -05:00
parent bbb7ab906e
commit db5d9429a0

View File

@ -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)