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

ruby-changes:68919

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:16:35 +0900 (JST)
Subject: [ruby-changes:68919] f1b11fa454 (master): Comment edits

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

From f1b11fa454551403ca74362329d6a0843363fce5 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Thu, 22 Apr 2021 12:15:52 -0400
Subject: Comment edits

---
 yjit_codegen.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yjit_codegen.c b/yjit_codegen.c
index c043d53e9f..1808522f57 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -242,14 +242,14 @@ yjit_gen_exit(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L242
     return code_ptr;
 }
 
-// Generate an interpreter to REG_CFP->pc.
+// Generate a continuation for gen_leave() that exits to the interpreter at REG_CFP->pc.
 static uint8_t *
 yjit_gen_leave_exit(codeblock_t *cb)
 {
     uint8_t *code_ptr = cb_get_ptr(cb, cb->write_pos);
 
-    // Update the CFP on the EC
-    //mov(cb, member_opnd(REG_EC, rb_execution_context_t, cfp), REG_CFP);
+    // Note, gen_leave() fully reconstructs interpreter state before
+    // coming here.
 
     // Every exit to the interpreter should be counted
     GEN_COUNTER_INC(cb, leave_interp_return);
-- 
cgit v1.2.1


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

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