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

ruby-changes:69524

From: Maxime <ko1@a...>
Date: Sat, 30 Oct 2021 03:59:07 +0900 (JST)
Subject: [ruby-changes:69524] 2e14fb7df7 (master): Add comments about send method types (#5059)

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

From 2e14fb7df752573da98be84a686d8bbd210b13d8 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Fri, 29 Oct 2021 11:58:49 -0700
Subject: Add comments about send method types (#5059)

---
 yjit_codegen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/yjit_codegen.c b/yjit_codegen.c
index d438970cf23..5a40edfe1c6 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -3929,6 +3929,7 @@ gen_send_general(jitstate_t *jit, ctx_t *ctx, struct rb_call_data *cd, rb_iseq_t https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L3929
                 ID ivar_name = cme->def->body.attr.id;
                 return gen_set_ivar(jit, ctx, comptime_recv, comptime_recv_klass, ivar_name);
             }
+          // Block method, e.g. define_method(:foo) { :my_block }
           case VM_METHOD_TYPE_BMETHOD:
             GEN_COUNTER_INC(cb, send_bmethod);
             return YJIT_CANT_COMPILE;
@@ -3946,6 +3947,7 @@ gen_send_general(jitstate_t *jit, ctx_t *ctx, struct rb_call_data *cd, rb_iseq_t https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L3947
           case VM_METHOD_TYPE_NOTIMPLEMENTED:
             GEN_COUNTER_INC(cb, send_not_implemented_method);
             return YJIT_CANT_COMPILE;
+          // Send family of methods, e.g. call/apply
           case VM_METHOD_TYPE_OPTIMIZED:
             GEN_COUNTER_INC(cb, send_optimized_method);
             return YJIT_CANT_COMPILE;
-- 
cgit v1.2.1


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

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