mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
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.
24 lines
629 B
C
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 */
|