summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2022-10-15 09:37:44 -0700
committerAaron Patterson <[email protected]>2022-10-15 10:44:10 -0700
commitf0654b1027d2f24cbb6e3cfb0c5946b70f06739b ()
treee49476db3318c77362e7ad21433df7832f0ede95 /shape.h
parent8d20632df849833d8a98f3d6f5e61f32eefa0fa6 (diff)
More precisely iterate over Object instance variables
Shapes provides us with an (almost) exact count of instance variables. We only need to check for Qundef when an IV has been "undefined" Prefer to use ROBJECT_IV_COUNT when iterating IVs
Notes: Merged: https://.com/ruby/ruby/pull/6555
-rw-r--r--shape.h9
1 files changed, 9 insertions, 0 deletions
@@ -125,6 +125,15 @@ bool rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t * value);
shape_id_t rb_shape_id(rb_shape_t * shape);
MJIT_SYMBOL_EXPORT_END
rb_shape_t * rb_shape_alloc(ID edge_name, rb_shape_t * parent);
rb_shape_t * rb_shape_alloc_with_parent_id(ID edge_name, shape_id_t parent_id);