diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-08 23:48:30 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-08 23:48:30 -0800 |
commit | f25e76fddd31ed51c17de2d5384e009c82d226f7 (patch) | |
tree | 8d6209123605ac924038f422474f0919ef08ea41 /vm_core.h | |
parent | 8893913ae6da33662201d0a0e6ba2d37f50630ca (diff) | |
download | ruby-f25e76fddd31ed51c17de2d5384e009c82d226f7.tar.gz |
MJIT: Improve comments for JIT fields [ci skip]
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |