aboutsummaryrefslogtreecommitdiffstats
path: root/vm_exec.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-01-29 16:42:03 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2024-01-29 22:19:25 -0500
commitdb5d9429a0d30213915fa36f2c6641065d01854a (patch)
tree1bf8d1121fb9051550f952e8a540a218181937a6 /vm_exec.h
parentbbb7ab906ec64b963bd4b5d37e47b14796d64371 (diff)
downloadruby-db5d9429a0d30213915fa36f2c6641065d01854a.tar.gz
YJIT: No need to RESTORE_REG now that we reject tailcalls
Thanks to Kokubun for noticing. Follow-up: b0711b1cf152afad0a480ee2f9bedd142a0d24ac
Diffstat (limited to 'vm_exec.h')
-rw-r--r--vm_exec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm_exec.h b/vm_exec.h
index b1eeb50660..11b89c30fc 100644
--- a/vm_exec.h
+++ b/vm_exec.h
@@ -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)