summaryrefslogtreecommitdiff
path: root/zjit/src
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-08 20:47:51 +0200
committerJean Boussier <[email protected]>2025-05-09 10:22:51 +0200
commitc9b08882b796c9d3a5f92d57d0b4f866fb24f3ac (patch)
tree2012f42eea9fc420e656566be1716feec7fe85b1 /zjit/src
parente0200cfba03bf7d23b6e298c35ca2636cbbdbd91 (diff)
Refactor `rb_shape_get_next` to return an ID
Also rename it, and change parameters to be consistent with other transition functions.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13283
Diffstat (limited to 'zjit/src')
-rw-r--r--zjit/src/cruby_bindings.inc.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/zjit/src/cruby_bindings.inc.rs b/zjit/src/cruby_bindings.inc.rs
index 4d716ecadc..2bdb5553ef 100644
--- a/zjit/src/cruby_bindings.inc.rs
+++ b/zjit/src/cruby_bindings.inc.rs
@@ -872,11 +872,7 @@ unsafe extern "C" {
pub fn rb_shape_get_shape_id(obj: VALUE) -> shape_id_t;
pub fn rb_shape_get_iv_index(shape: *mut rb_shape_t, id: ID, value: *mut attr_index_t) -> bool;
pub fn rb_shape_obj_too_complex_p(obj: VALUE) -> bool;
- pub fn rb_shape_get_next_no_warnings(
- shape: *mut rb_shape_t,
- obj: VALUE,
- id: ID,
- ) -> *mut rb_shape_t;
+ pub fn rb_shape_transition_add_ivar_no_warnings(obj: VALUE, id: ID) -> shape_id_t;
pub fn rb_shape_id(shape: *mut rb_shape_t) -> shape_id_t;
pub fn rb_gvar_get(arg1: ID) -> VALUE;
pub fn rb_gvar_set(arg1: ID, arg2: VALUE) -> VALUE;