From 11f121364ab0b113bcc721ed375a321148e0e8f5 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 27 Feb 2024 12:50:38 -0500 Subject: 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. --- yjit/bindgen/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yjit/bindgen') 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") -- cgit v1.2.3