From 175538e433badf179d712f5ead659f29f5d11654 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 1 Apr 2023 10:17:57 -0700 Subject: Improve explanation of FCALL and VCALL --- vm_callinfo.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'vm_callinfo.h') 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 }; -- cgit v1.2.1