summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2025-02-12 13:22:18 -0500
committerPeter Zhu <[email protected]>2025-02-12 14:03:07 -0500
commit16f41eca53ec43763c63a830e50ca72324dc9c79 ()
treed80baa763e927d2ef4028b09e710c217bf7786b8
parentf32d5071b7b01f258eb45cf533496d82d5c0f6a1 (diff)
Remove dead iv_index_tbl field in RObject
Notes: Merged: https://.com/ruby/ruby/pull/12739
-rw-r--r--include/ruby/internal/core/robject.h10
-rw-r--r--rjit_c.rb1
-rw-r--r--yjit.c1
-rw-r--r--yjit/src/cruby_bindings.inc.rs1
4 files changed, 0 insertions, 13 deletions
@@ -95,16 +95,6 @@ struct RObject {
struct {
/** Pointer to a C array that holds instance variables. */
VALUE *ivptr;
-
- /**
- * This is a table that holds instance variable name to index
- * mapping. Used when accessing instance variables using names.
- *
- * @internal
- *
- * This is a shortcut for `RCLASS_IV_INDEX_TBL(rb_obj_class(obj))`.
- */
- struct rb_id_table *iv_index_tbl;
} heap;
/* Embedded instance variables. When an object is small enough, it
@@ -806,7 +806,6 @@ module RubyVM::RJIT # :nodoc: all
heap: CType::Struct.new(
"", Primitive.cexpr!("SIZEOF(((struct RObject *)NULL)->as.heap)"),
ivptr: [CType::Pointer.new { self.VALUE }, Primitive.cexpr!("OFFSETOF(((struct RObject *)NULL)->as.heap, ivptr)")],
- iv_index_tbl: [CType::Pointer.new { self.rb_id_table }, Primitive.cexpr!("OFFSETOF(((struct RObject *)NULL)->as.heap, iv_index_tbl)")],
),
ary: CType::Array.new { self.VALUE },
), Primitive.cexpr!("OFFSETOF((*((struct RObject *)NULL)), as)")],
@@ -42,7 +42,6 @@
// Field offsets for the RObject struct
enum robject_offsets {
ROBJECT_OFFSET_AS_HEAP_IVPTR = offsetof(struct RObject, as.heap.ivptr),
- ROBJECT_OFFSET_AS_HEAP_IV_INDEX_TBL = offsetof(struct RObject, as.heap.iv_index_tbl),
ROBJECT_OFFSET_AS_ARY = offsetof(struct RObject, as.ary),
};
@@ -972,7 +972,6 @@ pub const DEFINED_FUNC: defined_type = 16;
pub const DEFINED_CONST_FROM: defined_type = 17;
pub type defined_type = u32;
pub const ROBJECT_OFFSET_AS_HEAP_IVPTR: robject_offsets = 16;
-pub const ROBJECT_OFFSET_AS_HEAP_IV_INDEX_TBL: robject_offsets = 24;
pub const ROBJECT_OFFSET_AS_ARY: robject_offsets = 16;
pub type robject_offsets = u32;
pub const RUBY_OFFSET_RSTRING_LEN: rstring_offsets = 16;