Files
Peter Zhu 8972135571 Include JIT call count in ObjectSpace dumps of iseq
This commit adds `jit_calls` and `jit_threshold_reached` to iseq dumps which
dumps the number of calls to the iseq and whether the iseq has been JIT
compiled or not, respectively.
2026-10-09 08:56:20 +09:00

24 lines
629 B
C

#ifndef INTERNAL_JIT_H /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_JIT_H
#include "iseq.h"
typedef void (*rb_iseq_callback)(const rb_iseq_t *, void *);
/* cont.c */
void rb_jit_cont_init(void);
void rb_jit_cont_each_iseq(rb_iseq_callback callback, void *data);
void rb_jit_cont_finish(void);
/* jit.c */
void rb_jit_for_each_iseq(rb_iseq_callback callback, void *data);
uint32_t rb_jit_get_page_size(void);
uint8_t *rb_jit_reserve_addr_space(uint32_t mem_size);
/* vm.c */
RUBY_SYMBOL_EXPORT_BEGIN
unsigned int rb_jit_call_threshold(void);
RUBY_SYMBOL_EXPORT_END
#endif /* INTERNAL_JIT_H */