diff options
-rw-r--r-- | shape.c | 57 |
1 files changed, 57 insertions, 0 deletions
@@ -38,6 +38,7 @@ #define SINGLE_CHILD(x) (rb_shape_t *)((uintptr_t)x & SINGLE_CHILD_MASK) #define ANCESTOR_CACHE_THRESHOLD 10 #define MAX_SHAPE_ID (SHAPE_BUFFER_SIZE - 1) static ID id_frozen; static ID id_t_object; @@ -723,6 +724,62 @@ rb_shape_transition_shape_capa(rb_shape_t* shape) return rb_shape_transition_shape_capa_create(shape, rb_malloc_grow_capa(shape->capacity, sizeof(VALUE))); } bool rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t *value) { |