aboutsummaryrefslogtreecommitdiffstats
path: root/vm_callinfo.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-01 10:17:57 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-04-01 10:17:59 -0700
commit175538e433badf179d712f5ead659f29f5d11654 (patch)
tree3eba06e98e5c13f5f96d2a173be80c099fe27d3a /vm_callinfo.h
parent4ac8d1172483634bb24183b8ad2aaa03435b17a3 (diff)
downloadruby-175538e433badf179d712f5ead659f29f5d11654.tar.gz
Improve explanation of FCALL and VCALL
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r--vm_callinfo.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index bf34908eea..1c61a839d3 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -13,19 +13,19 @@
#include "shape.h"
enum vm_call_flag_bits {
- VM_CALL_ARGS_SPLAT_bit, /* m(*args) */
- VM_CALL_ARGS_BLOCKARG_bit, /* m(&block) */
- VM_CALL_FCALL_bit, /* m(...) */
- VM_CALL_VCALL_bit, /* m */
- VM_CALL_ARGS_SIMPLE_bit, /* (ci->flag & (SPLAT|BLOCKARG)) && blockiseq == NULL && ci->kw_arg == NULL */
- VM_CALL_BLOCKISEQ_bit, /* has blockiseq */
- VM_CALL_KWARG_bit, /* has kwarg */
- VM_CALL_KW_SPLAT_bit, /* m(**opts) */
- VM_CALL_TAILCALL_bit, /* located at tail position */
- VM_CALL_SUPER_bit, /* super */
- VM_CALL_ZSUPER_bit, /* zsuper */
- VM_CALL_OPT_SEND_bit, /* internal flag */
- VM_CALL_KW_SPLAT_MUT_bit, /* kw splat hash can be modified (to avoid allocating a new one) */
+ VM_CALL_ARGS_SPLAT_bit, // m(*args)
+ VM_CALL_ARGS_BLOCKARG_bit, // m(&block)
+ VM_CALL_FCALL_bit, // m(args) # receiver is self
+ VM_CALL_VCALL_bit, // m # method call that looks like a local variable
+ VM_CALL_ARGS_SIMPLE_bit, // (ci->flag & (SPLAT|BLOCKARG)) && blockiseq == NULL && ci->kw_arg == NULL
+ VM_CALL_BLOCKISEQ_bit, // has blockiseq
+ VM_CALL_KWARG_bit, // has kwarg
+ VM_CALL_KW_SPLAT_bit, // m(**opts)
+ VM_CALL_TAILCALL_bit, // located at tail position
+ VM_CALL_SUPER_bit, // super
+ VM_CALL_ZSUPER_bit, // zsuper
+ VM_CALL_OPT_SEND_bit, // internal flag
+ VM_CALL_KW_SPLAT_MUT_bit, // kw splat hash can be modified (to avoid allocating a new one)
VM_CALL__END
};