diff options
author | Alan Wu <[email protected]> | 2024-02-27 12:50:38 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-27 17:50:38 +0000 |
commit | 11f121364ab0b113bcc721ed375a321148e0e8f5 (patch) | |
tree | ac3b85bb2fea74037ee5fa8b01ca480c85604a5d /yjit/bindgen | |
parent | 1f740cd1115fd96d5da7e7c08223de5396e8b5f1 (diff) |
YJIT: Support splat with C methods with -1 arity
Usually we deal with splats by speculating that they're of a specific
size. In this case, the C method takes a pointer and a length, so
we can support changing sizes just fine.
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index a1b8cf3a75..c58df7c377 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -460,6 +460,8 @@ fn main() { .allowlist_function("rb_vm_base_ptr") .allowlist_function("rb_ec_stack_check") .allowlist_function("rb_vm_top_self") + .allowlist_function("rb_yjit_splat_varg_checks") + .allowlist_function("rb_yjit_splat_varg_cfunc") // We define VALUE manually, don't import it .blocklist_type("VALUE") |