summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-08 23:48:30 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-08 23:48:30 -0800
commitf25e76fddd31ed51c17de2d5384e009c82d226f7 (patch)
tree8d6209123605ac924038f422474f0919ef08ea41 /vm_core.h
parent8893913ae6da33662201d0a0e6ba2d37f50630ca (diff)
downloadruby-f25e76fddd31ed51c17de2d5384e009c82d226f7.tar.gz
MJIT: Improve comments for JIT fields [ci skip]
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index 88ff913a04..4f6e07d818 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -504,12 +504,14 @@ struct rb_iseq_constant_body {
const rb_iseq_t *mandatory_only_iseq;
#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()` */
+ // Function pointer for JIT code
+ VALUE (*jit_func)(struct rb_execution_context_struct *, struct rb_control_frame_struct *);
+ // Number of total calls with jit_exec()
+ long unsigned total_calls;
#endif
+
#if USE_MJIT
+ // MJIT stores some data on each iseq.
struct rb_mjit_unit *mjit_unit;
#endif