WIP refactor block lists to use darray

This commit is contained in:
Maxime Chevalier-Boisvert 2021-03-04 12:05:18 -05:00 committed by Alan Wu
parent 5c497dfd7f
commit abc016ad2c
5 changed files with 78 additions and 66 deletions

View file

@ -312,7 +312,9 @@ pathobj_realpath(VALUE pathobj)
/* Forward declarations */
struct rb_mjit_unit;
// List of YJIT block versions
typedef rb_darray(struct ujit_block_version *) rb_ujit_block_array_t;
typedef rb_darray(rb_ujit_block_array_t) rb_ujit_block_array_array_t;
struct rb_iseq_constant_body {
enum iseq_type {
@ -453,7 +455,7 @@ struct rb_iseq_constant_body {
struct rb_mjit_unit *jit_unit;
#endif
rb_ujit_block_array_t ujit_blocks; // empty, or has a size equal to iseq_size
rb_ujit_block_array_array_t ujit_blocks; // empty, or has a size equal to iseq_size
};
/* T_IMEMO/iseq */