summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-05 13:54:34 +0200
committerJean Boussier <[email protected]>2025-05-05 14:44:49 +0200
commita3af4e905f66e9f95396ae5619cfb486feb6ee4a ()
treee023fd98321d8339dafdc9719e97c05114ce1d5e
parentbbea71fafb41aeac1e813498acc26f7903af1efb (diff)
Make rb_shape.capacity an `attr_index_t`
Notes: Merged: https://.com/ruby/ruby/pull/13257
-rw-r--r--shape.h2
-rw-r--r--yjit/src/cruby_bindings.inc.rs2
-rw-r--r--zjit/src/cruby_bindings.inc.rs2
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
uint8_t type;
uint8_t heap_index;
shape_id_t parent_id;
@@ -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 type_: u8,
pub heap_index: u8,
pub parent_id: shape_id_t,
@@ -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 type_: u8,
pub heap_index: u8,
pub parent_id: shape_id_t,