summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-02-14 17:27:44 -0800
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:58 +0900
commit06d875b97901b7c6accb36c8b7b525d0884696a7 (patch)
tree23dc9a6b45b2ccb20c949867a56513e90ae23ba0 /vm_core.h
parent3e49f3304d6a42edded0d571bd45ffdf846ffd9b (diff)
Backport the latest jit_compile()
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 79e35cc82c..db98cc01a6 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -534,7 +534,7 @@ struct rb_iseq_constant_body {
const rb_iseq_t *mandatory_only_iseq;
-#if USE_YJIT
+#if USE_YJIT || USE_ZJIT
// Function pointer for JIT code on jit_exec()
rb_jit_func_t jit_entry;
// Number of calls on jit_exec()
@@ -543,11 +543,19 @@ struct rb_iseq_constant_body {
rb_jit_func_t jit_exception;
// Number of calls on jit_exec_exception()
long unsigned jit_exception_calls;
+#endif
+
+#if USE_YJIT
// YJIT stores some data on each iseq.
void *yjit_payload;
// Used to estimate how frequently this ISEQ gets called
uint64_t yjit_calls_at_interv;
#endif
+
+#if USE_ZJIT
+ // ZJIT stores some data on each iseq.
+ void *zjit_payload;
+#endif
};
/* T_IMEMO/iseq */