summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-28 12:39:21 +0200
committerJean Boussier <[email protected]>2025-05-28 12:39:21 +0200
commit749bda96e59240f43f8938545990da505807eb36 ()
treebfeff97b2f6c62a1521a1465412ba54f0632faa1 /vm_insnhelper.c
parent658fcbe91a7c74ba33aee96c8a6c10f13ff3e6d9 (diff)
Refactor attr_index_t caches
Ensure the same helpers are used for packing and unpacking.
Notes: Merged: https://.com/ruby/ruby/pull/13455
-rw-r--r--vm_insnhelper.c2
1 files changed, 0 insertions, 2 deletions
@@ -1209,8 +1209,6 @@ fill_ivar_cache(const rb_iseq_t *iseq, IVC ic, const struct rb_callcache *cc, in
#define ractor_object_incidental_shareable_p(obj, val) \
ractor_incidental_shareable_p(rb_ractor_shareable_p(obj), val)
-#define ATTR_INDEX_NOT_SET (attr_index_t)-1
-
ALWAYS_INLINE(static VALUE vm_getivar(VALUE, ID, const rb_iseq_t *, IVC, const struct rb_callcache *, int, VALUE));
static inline VALUE
vm_getivar(VALUE obj, ID id, const rb_iseq_t *iseq, IVC ic, const struct rb_callcache *cc, int is_attr, VALUE default_value)