diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2022-10-21 16:24:29 -0400 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2022-10-21 14:57:34 -0700 |
| commit | a11952dac1a5b0776a493968eeffbd4be4403b76 (patch) | |
| tree | b905121c4e4ac94010def14957da6539ce0dd2d5 /mjit_c.rb | |
| parent | 13bd617ea6fdf72467c593639cf33312a06c330c (diff) | |
Rename `iv_count` on shapes to `next_iv_index`
`iv_count` is a misleading name because when IVs are unset, the new
shape doesn't decrement this value. `next_iv_count` is an accurate, and
more descriptive name.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6608
Diffstat (limited to 'mjit_c.rb')
| -rw-r--r-- | mjit_c.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -606,7 +606,7 @@ module RubyVM::MJIT "rb_shape", Primitive.cexpr!("SIZEOF(struct rb_shape)"), edges: [CType::Pointer.new { self.rb_id_table }, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), edges)")], edge_name: [self.ID, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), edge_name)")], - iv_count: [self.attr_index_t, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), iv_count)")], + next_iv_index: [self.attr_index_t, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), next_iv_index)")], type: [CType::Immediate.parse("uint8_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), type)")], parent_id: [self.shape_id_t, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), parent_id)")], ) |
