diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2024-02-15 11:59:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 11:59:37 -0500 |
commit | da7b9478d33d212145f2b79e378cb617451f3a5b (patch) | |
tree | 07f2af41bc52301a3f9d70a294c55060775461d9 /yjit/bindgen/src | |
parent | e779c194b3520973e42e277ed4759a90b97795d0 (diff) |
YJIT: Pass nil to anonymous kwrest when empty (#9972)
This is the same optimization as e4272fd29 ("Avoid allocation when
passing no keywords to anonymous kwrest methods") but for YJIT. For
anonymous kwrest parameters, nil is just as good as an empty hash.
On the usage side, update `splatkw` to handle `nil` with a leaner path.
Diffstat (limited to 'yjit/bindgen/src')
-rw-r--r-- | yjit/bindgen/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index ffe56619cc..a1b8cf3a75 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -421,6 +421,7 @@ fn main() { .allowlist_function("rb_get_iseq_flags_has_rest") .allowlist_function("rb_get_iseq_flags_has_post") .allowlist_function("rb_get_iseq_flags_has_kwrest") + .allowlist_function("rb_get_iseq_flags_anon_kwrest") .allowlist_function("rb_get_iseq_flags_has_block") .allowlist_function("rb_get_iseq_flags_ambiguous_param0") .allowlist_function("rb_get_iseq_flags_accepts_no_kwarg") |