From f25e76fddd31ed51c17de2d5384e009c82d226f7 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 8 Dec 2022 23:48:30 -0800 Subject: MJIT: Improve comments for JIT fields [ci skip] --- vm_core.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'vm_core.h') 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 -- cgit v1.2.1