diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-08 23:41:12 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-08 23:43:09 -0800 |
commit | 8893913ae6da33662201d0a0e6ba2d37f50630ca (patch) | |
tree | d079552cf28d28e9d91c0ba95994a9119ca31abc /vm_core.h | |
parent | c668eaff1e5e775c9fa07c9cfa65aff0b3e11872 (diff) | |
download | ruby-8893913ae6da33662201d0a0e6ba2d37f50630ca.tar.gz |
MJIT: Clarify jit_unit is only for MJIT
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -503,12 +503,14 @@ struct rb_iseq_constant_body { const rb_iseq_t *mandatory_only_iseq; -#if USE_MJIT +#if USE_MJIT || USE_YJIT /* The following fields are MJIT related info. */ VALUE (*jit_func)(struct rb_execution_context_struct *, struct rb_control_frame_struct *); /* function pointer for loaded native code */ long unsigned total_calls; /* number of total calls with `jit_exec()` */ - struct rb_mjit_unit *jit_unit; +#endif +#if USE_MJIT + struct rb_mjit_unit *mjit_unit; #endif #if USE_YJIT |