diff options
| author | Max Bernstein <ruby@bernsteinbear.com> | 2025-12-03 16:11:30 -0500 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2025-12-03 16:59:05 -0500 |
| commit | b43e66d3b37d4bd029a90dbee376e475aed79d2a (patch) | |
| tree | 5000b85371328cf4ae416d68c59e230851fe5277 /shape.c | |
| parent | f1670733249fb30d755bad1f88c0e54b26bdf49e (diff) | |
YJIT: Pass class and shape ID directly instead of object
Diffstat (limited to 'shape.c')
| -rw-r--r-- | shape.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |
