MJIT: Improve comments for JIT fields [ci skip]
This commit is contained in:
parent
8893913ae6
commit
f25e76fddd
10
vm_core.h
10
vm_core.h
@ -504,12 +504,14 @@ struct rb_iseq_constant_body {
|
|||||||
const rb_iseq_t *mandatory_only_iseq;
|
const rb_iseq_t *mandatory_only_iseq;
|
||||||
|
|
||||||
#if USE_MJIT || USE_YJIT
|
#if USE_MJIT || USE_YJIT
|
||||||
/* The following fields are MJIT related info. */
|
// Function pointer for JIT code
|
||||||
VALUE (*jit_func)(struct rb_execution_context_struct *,
|
VALUE (*jit_func)(struct rb_execution_context_struct *, struct rb_control_frame_struct *);
|
||||||
struct rb_control_frame_struct *); /* function pointer for loaded native code */
|
// Number of total calls with jit_exec()
|
||||||
long unsigned total_calls; /* number of total calls with `jit_exec()` */
|
long unsigned total_calls;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_MJIT
|
#if USE_MJIT
|
||||||
|
// MJIT stores some data on each iseq.
|
||||||
struct rb_mjit_unit *mjit_unit;
|
struct rb_mjit_unit *mjit_unit;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user