mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add comments about send method types (#5059)
This commit is contained in:
parent
99c60d4b25
commit
2e14fb7df7
Notes:
git
2021-10-30 03:59:09 +09:00
Merged-By: maximecb <maximecb@ruby-lang.org>
1 changed files with 2 additions and 0 deletions
|
@ -3929,6 +3929,7 @@ gen_send_general(jitstate_t *jit, ctx_t *ctx, struct rb_call_data *cd, rb_iseq_t
|
|||
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
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue