summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2023-01-31 16:18:56 -0500
committerGitHub <noreply@github.com>2023-01-31 16:18:56 -0500
commit1148fab7ae4653f94384da5eb282e61217cf12f5 (patch)
tree380ad4e12c78ba99f21b053784615c0deccb80d4 /yjit.c
parent3ebc80314cf1ce727dcc2ba4192ff5265d348206 (diff)
YJIT: Handle splat with opt more fully (#7209)
* YJIT: Handle splat with opt more fully * Update yjit/src/codegen.rs --------- Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index a1710f9c05..bc25880de2 100644
--- a/yjit.c
+++ b/yjit.c
@@ -103,6 +103,12 @@ rb_yjit_mark_unused(void *mem_block, uint32_t mem_size)
return mprotect(mem_block, mem_size, PROT_NONE) == 0;
}
+long
+rb_yjit_array_len(VALUE a)
+{
+ return rb_array_len(a);
+}
+
// `start` is inclusive and `end` is exclusive.
void
rb_yjit_icache_invalidate(void *start, void *end)