summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
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 c39bcad643..b7eebf0061 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -292,8 +292,9 @@ pathobj_realpath(VALUE pathobj)
}
}
-/* A forward declaration */
+/* Forward declarations */
struct rb_mjit_unit;
+struct rb_execution_context_struct;
struct rb_iseq_constant_body {
enum iseq_type {
@@ -419,7 +420,8 @@ struct rb_iseq_constant_body {
unsigned int stack_max; /* for stack overflow check */
/* The following fields are MJIT related info. */
- void *jit_func; /* function pointer for loaded native code */
+ 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 `mjit_exec()` */
struct rb_mjit_unit *jit_unit;
};