summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-03-04 12:05:18 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:30 -0400
commitabc016ad2c85a15ad6a512be57f47d893bc81e27 (patch)
tree81e5d7c6d0417204a71cb78cba1da8fdfd528682 /vm_core.h
parent5c497dfd7f86c88c9730dda397fecb3aa943e84d (diff)
WIP refactor block lists to use darray
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index e984be781e..184cc764c5 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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 */