summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorMax Bernstein <ruby@bernsteinbear.com>2026-02-06 21:43:23 -0500
committerMax Bernstein <tekknolagi@gmail.com>2026-02-09 19:28:04 -0500
commit11c845efecc76735110e40d9b05ff5045f1ce925 (patch)
tree83f6f8f14f19df6e3b7ba4a6bcdf44df20e7011e /array.c
parent98e6f5e4bc56b8b611d152a43500531478a6472d (diff)
ZJIT: Inline Primitives for Array#each
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/array.c b/array.c
index 876642dff7..c652c3c044 100644
--- a/array.c
+++ b/array.c
@@ -2695,21 +2695,21 @@ ary_enum_length(VALUE ary, VALUE args, VALUE eobj)
}
// Return true if the index is at or past the end of the array.
-static VALUE
+VALUE
rb_jit_ary_at_end(rb_execution_context_t *ec, VALUE self, VALUE index)
{
return FIX2LONG(index) >= RARRAY_LEN(self) ? Qtrue : Qfalse;
}
// Return the element at the given fixnum index.
-static VALUE
+VALUE
rb_jit_ary_at(rb_execution_context_t *ec, VALUE self, VALUE index)
{
return RARRAY_AREF(self, FIX2LONG(index));
}
// Increment a fixnum by 1.
-static VALUE
+VALUE
rb_jit_fixnum_inc(rb_execution_context_t *ec, VALUE self, VALUE num)
{
return LONG2FIX(FIX2LONG(num) + 1);