We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d52ee0 commit a02cb2eCopy full SHA for a02cb2e
zjit/src/hir.rs
@@ -2950,6 +2950,8 @@ impl Function {
2950
// We're only looking at T_OBJECT so ignore all of the imemo stuff.
2951
assert!(recv_type.flags().is_t_object());
2952
let next_shape_id = unsafe { rb_class_shape_transition_add_ivar_no_warnings(class, current_shape_id.0, id) };
2953
+ let ivar_result = unsafe { rb_shape_get_iv_index(next_shape_id, id, &mut ivar_index) };
2954
+ assert!(ivar_result, "New shape must have the ivar index");
2955
// If the VM ran out of shapes, or this class generated too many leaf,
2956
// it may be de-optimized into OBJ_TOO_COMPLEX_SHAPE (hash-table).
2957
let new_shape_too_complex = unsafe { rb_jit_shape_too_complex_p(next_shape_id) };
0 commit comments