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

ruby-changes:68681

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:12:20 +0900 (JST)
Subject: [ruby-changes:68681] 9ce9f613b0 (master): Update comment for `ujit_compile_insn`

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

From 9ce9f613b0b3a1b222055fac93969f588cfd7e7b Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Thu, 29 Oct 2020 14:45:53 -0400
Subject: Update comment for `ujit_compile_insn`

---
 ujit_compile.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ujit_compile.c b/ujit_compile.c
index e78d328c3e..df9b9e3d0a 100644
--- a/ujit_compile.c
+++ b/ujit_compile.c
@@ -354,11 +354,12 @@ ujit_side_exit(codeblock_t* cb, ctx_t* ctx, VALUE* exit_pc) https://github.com/ruby/ruby/blob/trunk/ujit_compile.c#L354
 }
 
 /*
-Generate a chunk of machine code for one individual bytecode instruction
-Eventually, this will handle multiple instructions in a sequence
+Compile a sequence of bytecode instructions starting at `insn_idx`.
+Return the index to the first instruction not compiled in the sequence
+through `next_ujit_idx`. Return `NULL` in case compilation fails.
 */
 uint8_t *
-ujit_compile_insn(const rb_iseq_t *iseq, unsigned int insn_idx, unsigned int* next_ujit_idx)
+ujit_compile_insn(const rb_iseq_t *iseq, unsigned int insn_idx, unsigned int *next_ujit_idx)
 {
     assert (cb != NULL);
 
-- 
cgit v1.2.1


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

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