diff options
author | Alan Wu <[email protected]> | 2021-09-14 11:02:20 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:40 -0400 |
commit | 1f6641681b216d0de5f89c817ee451a0153fa1d4 (patch) | |
tree | e458297cd26eef1f0ef54af90c7ca83796b680a6 | |
parent | 9fff8fdb59fe79e52bf0985db3edc4d8e1ce54fb (diff) |
No need to do ec->cfp = reg_cfp on exits
It's already up to date. We set it when we do iseq calls and it's set
properly on entry. If it's not set properly exceptions wouldn't work.
-rw-r--r-- | yjit_codegen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index be0c7ca255..c4c6011b44 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -348,9 +348,6 @@ yjit_gen_exit(VALUE *exit_pc, ctx_t *ctx, codeblock_t *cb) mov(cb, member_opnd(REG_CFP, rb_control_frame_t, sp), REG_SP); } - // Update the CFP on the EC - mov(cb, member_opnd(REG_EC, rb_execution_context_t, cfp), REG_CFP); - // Update CFP->PC mov(cb, RAX, const_ptr_opnd(exit_pc)); mov(cb, member_opnd(REG_CFP, rb_control_frame_t, pc), RAX); |