diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-05-05 13:54:34 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-05-05 14:44:49 +0200 |
| commit | a3af4e905f66e9f95396ae5619cfb486feb6ee4a (patch) | |
| tree | e023fd98321d8339dafdc9719e97c05114ce1d5e | |
| parent | bbea71fafb41aeac1e813498acc26f7903af1efb (diff) | |
Make rb_shape.capacity an `attr_index_t`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13257
| -rw-r--r-- | shape.h | 2 | ||||
| -rw-r--r-- | yjit/src/cruby_bindings.inc.rs | 2 | ||||
| -rw-r--r-- | zjit/src/cruby_bindings.inc.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -45,7 +45,7 @@ struct rb_shape { struct rb_id_table *edges; // id_table from ID (ivar) to next shape ID edge_name; // ID (ivar) for transition from parent to rb_shape attr_index_t next_iv_index; - uint32_t capacity; // Total capacity of the object with this shape + attr_index_t capacity; // Total capacity of the object with this shape uint8_t type; uint8_t heap_index; shape_id_t parent_id; diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index 490a61226a..661e6ea3d1 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -649,7 +649,7 @@ pub struct rb_shape { pub edges: *mut rb_id_table, pub edge_name: ID, pub next_iv_index: attr_index_t, - pub capacity: u32, + pub capacity: attr_index_t, pub type_: u8, pub heap_index: u8, pub parent_id: shape_id_t, diff --git a/zjit/src/cruby_bindings.inc.rs b/zjit/src/cruby_bindings.inc.rs index 88532abb63..637c356970 100644 --- a/zjit/src/cruby_bindings.inc.rs +++ b/zjit/src/cruby_bindings.inc.rs @@ -406,7 +406,7 @@ pub struct rb_shape { pub edges: *mut rb_id_table, pub edge_name: ID, pub next_iv_index: attr_index_t, - pub capacity: u32, + pub capacity: attr_index_t, pub type_: u8, pub heap_index: u8, pub parent_id: shape_id_t, |
