summaryrefslogtreecommitdiff
path: root/vm_callinfo.h
diff options
context:
space:
mode:
authorGabriel Lacroix <[email protected]>2024-06-28 10:11:35 -0400
committerGitHub <[email protected]>2024-06-28 10:11:35 -0400
commit1652c194c849468659baa566a2422a308d6eac0c (patch)
treee0c214b87ced76e9dfc289f4ca64c830d671b9e6 /vm_callinfo.h
parent5c826ebea585dad8aa351632a9de3162d59fb898 (diff)
Fix comment for VM_CALL_ARGS_SIMPLE (#11067)
* Set VM_CALL_KWARG flag first and reuse it to avoid checking kw_arg twice * Fix comment for VM_CALL_ARGS_SIMPLE * Make VM_CALL_ARGS_SIMPLE set-site match its comment
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r--vm_callinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index ccc28eb527..bb4e46e758 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -17,7 +17,7 @@ enum vm_call_flag_bits {
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_ARGS_SIMPLE_bit, // !(ci->flag & (SPLAT|BLOCKARG|KWARG|KW_SPLAT|FORWARDING)) && !has_block_iseq
VM_CALL_KWARG_bit, // has kwarg
VM_CALL_KW_SPLAT_bit, // m(**opts)
VM_CALL_TAILCALL_bit, // located at tail position