diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2023-01-31 16:18:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 16:18:56 -0500 |
commit | 1148fab7ae4653f94384da5eb282e61217cf12f5 (patch) | |
tree | 380ad4e12c78ba99f21b053784615c0deccb80d4 /yjit.c | |
parent | 3ebc80314cf1ce727dcc2ba4192ff5265d348206 (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |