diff options
author | Jean Boussier <[email protected]> | 2025-05-08 18:47:18 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-05-09 10:22:51 +0200 |
commit | 334ebba2219cba4b8ec1ef69325d3fe517345e47 (patch) | |
tree | e97e98f78faeaa0f4111c30ae3cdabcd7d22ec76 /yjit/src/codegen.rs | |
parent | 9966de11fb349688f12ea16dc4c082269a8fdb42 (diff) |
Rename `rb_shape_get_shape_by_id` -> `RSHAPE`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13283
Diffstat (limited to 'yjit/src/codegen.rs')
-rw-r--r-- | yjit/src/codegen.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 3a8b3e04c9..08e8c68404 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -2894,7 +2894,7 @@ fn gen_get_ivar( let ivar_index = unsafe { let shape_id = comptime_receiver.shape_id_of(); - let shape = rb_shape_get_shape_by_id(shape_id); + let shape = RSHAPE(shape_id); let mut ivar_index: u32 = 0; if rb_shape_get_iv_index(shape, ivar_name, &mut ivar_index) { Some(ivar_index as usize) @@ -3097,7 +3097,7 @@ fn gen_set_ivar( let shape_too_complex = comptime_receiver.shape_too_complex(); let ivar_index = if !shape_too_complex { let shape_id = comptime_receiver.shape_id_of(); - let shape = unsafe { rb_shape_get_shape_by_id(shape_id) }; + let shape = unsafe { RSHAPE(shape_id) }; let mut ivar_index: u32 = 0; if unsafe { rb_shape_get_iv_index(shape, ivar_name, &mut ivar_index) } { Some(ivar_index as usize) @@ -3387,7 +3387,7 @@ fn gen_definedivar( let shape_id = comptime_receiver.shape_id_of(); let ivar_exists = unsafe { - let shape = rb_shape_get_shape_by_id(shape_id); + let shape = RSHAPE(shape_id); let mut ivar_index: u32 = 0; rb_shape_get_iv_index(shape, ivar_name, &mut ivar_index) }; |