diff options
| author | John Hawthorn <john@hawthorn.email> | 2022-10-21 14:31:33 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2022-10-24 10:54:01 -0700 |
| commit | b652dbf63b963f92abddf15ed4f2fed0787e1969 (patch) | |
| tree | a996b29a004951cb9e2cb1dd32065ec85470b7c2 | |
| parent | abeef41c9573b458dec1b960d4251a38aeaa8e03 (diff) | |
Remove iv_index_tbl_entry
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6610
| -rw-r--r-- | internal/class.h | 6 | ||||
| -rw-r--r-- | mjit_c.rb | 9 | ||||
| -rwxr-xr-x | tool/mjit/bindgen.rb | 1 |
3 files changed, 0 insertions, 16 deletions
diff --git a/internal/class.h b/internal/class.h index f163b7445c..63fe84c6ab 100644 --- a/internal/class.h +++ b/internal/class.h @@ -26,12 +26,6 @@ struct rb_subclass_entry { struct rb_subclass_entry *prev; }; -struct rb_iv_index_tbl_entry { - uint32_t index; - shape_id_t source_shape_id; - shape_id_t dest_shape_id; -}; - struct rb_cvar_class_tbl_entry { uint32_t index; rb_serial_t global_cvar_state; @@ -527,15 +527,6 @@ module RubyVM::MJIT @rb_iseq_t ||= self.rb_iseq_struct end - def C.rb_iv_index_tbl_entry - @rb_iv_index_tbl_entry ||= CType::Struct.new( - "rb_iv_index_tbl_entry", Primitive.cexpr!("SIZEOF(struct rb_iv_index_tbl_entry)"), - index: [CType::Immediate.parse("uint32_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_iv_index_tbl_entry *)NULL)), index)")], - source_shape_id: [self.shape_id_t, Primitive.cexpr!("OFFSETOF((*((struct rb_iv_index_tbl_entry *)NULL)), source_shape_id)")], - dest_shape_id: [self.shape_id_t, Primitive.cexpr!("OFFSETOF((*((struct rb_iv_index_tbl_entry *)NULL)), dest_shape_id)")], - ) - end - def C.rb_method_definition_struct @rb_method_definition_struct ||= CType::Struct.new( "rb_method_definition_struct", Primitive.cexpr!("SIZEOF(struct rb_method_definition_struct)"), diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb index 77b81814e3..4d79b32bc2 100755 --- a/tool/mjit/bindgen.rb +++ b/tool/mjit/bindgen.rb @@ -373,7 +373,6 @@ generator = BindingGenerator.new( rb_iseq_location_t rb_iseq_struct rb_iseq_t - rb_iv_index_tbl_entry rb_method_definition_struct rb_method_iseq_t rb_method_type_t |
