[前][次][番号順一覧][スレッド一覧]

ruby-changes:69269

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:25 +0900 (JST)
Subject: [ruby-changes:69269] 1f6641681b (master): No need to do ec->cfp = reg_cfp on exits

https://git.ruby-lang.org/ruby.git/commit/?id=1f6641681b

From 1f6641681b216d0de5f89c817ee451a0153fa1d4 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Tue, 14 Sep 2021 11:02:20 -0400
Subject: 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.
---
 yjit_codegen.c | 3 ---
 1 file changed, 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) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L348
         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);
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]