diff options
| author | Max Bernstein <ruby@bernsteinbear.com> | 2026-02-06 21:43:23 -0500 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2026-02-09 19:28:04 -0500 |
| commit | 11c845efecc76735110e40d9b05ff5045f1ce925 (patch) | |
| tree | 83f6f8f14f19df6e3b7ba4a6bcdf44df20e7011e /array.c | |
| parent | 98e6f5e4bc56b8b611d152a43500531478a6472d (diff) | |
ZJIT: Inline Primitives for Array#each
Diffstat (limited to 'array.c')
| -rw-r--r-- | array.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
