summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-08 23:41:12 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-08 23:43:09 -0800
commit8893913ae6da33662201d0a0e6ba2d37f50630ca (patch)
treed079552cf28d28e9d91c0ba95994a9119ca31abc /vm_core.h
parentc668eaff1e5e775c9fa07c9cfa65aff0b3e11872 (diff)
downloadruby-8893913ae6da33662201d0a0e6ba2d37f50630ca.tar.gz
MJIT: Clarify jit_unit is only for MJIT
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index 65f2741219..88ff913a04 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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