summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorMax Bernstein <ruby@bernsteinbear.com>2025-12-03 16:11:30 -0500
committerMax Bernstein <tekknolagi@gmail.com>2025-12-03 16:59:05 -0500
commitb43e66d3b37d4bd029a90dbee376e475aed79d2a (patch)
tree5000b85371328cf4ae416d68c59e230851fe5277 /shape.c
parentf1670733249fb30d755bad1f88c0e54b26bdf49e (diff)
YJIT: Pass class and shape ID directly instead of object
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shape.c b/shape.c
index 13d1edf36c..90036722f1 100644
--- a/shape.c
+++ b/shape.c
@@ -950,12 +950,10 @@ rb_shape_transition_add_ivar(VALUE obj, ID id)
}
shape_id_t
-rb_shape_transition_add_ivar_no_warnings(VALUE obj, ID id)
+rb_shape_transition_add_ivar_no_warnings(VALUE klass, shape_id_t original_shape_id, ID id)
{
- shape_id_t original_shape_id = RBASIC_SHAPE_ID(obj);
RUBY_ASSERT(!shape_frozen_p(original_shape_id));
- VALUE klass = obj_get_owner_class(obj);
rb_shape_t *next_shape = shape_get_next(RSHAPE(original_shape_id), SHAPE_IVAR, klass, id, false);
if (next_shape) {
return shape_id(next_shape, original_shape_id);