diff options
author | Takashi Kokubun <[email protected]> | 2025-02-14 17:27:44 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:58 +0900 |
commit | 06d875b97901b7c6accb36c8b7b525d0884696a7 (patch) | |
tree | 23dc9a6b45b2ccb20c949867a56513e90ae23ba0 /vm_core.h | |
parent | 3e49f3304d6a42edded0d571bd45ffdf846ffd9b (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.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 */ |