diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2023-07-17 10:41:18 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-17 10:41:18 -0400 |
commit | d70484f0eb176a7ef7274972ff92b88905ea0edc (patch) | |
tree | f255d7024f61ed86e0dd4e2f848c39a8e2dfce97 /yjit.c | |
parent | 1c4a523006e4a0994db4f166bd410fe1d35e8611 (diff) |
YJIT: refactoring to allow for fancier call threshold logic (#8078)
* YJIT: refactoring to allow for fancier call threshold logic
* Avoid potentially compiling functions multiple times.
* Update vm.c
Co-authored-by: Alan Wu <[email protected]>
---------
Co-authored-by: Alan Wu <[email protected]>
Notes
Notes:
Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -590,6 +590,12 @@ rb_get_def_bmethod_proc(rb_method_definition_t *def) return def->body.bmethod.proc; } +unsigned long +rb_get_iseq_body_total_calls(const rb_iseq_t *iseq) +{ + return iseq->body->total_calls; +} + const rb_iseq_t * rb_get_iseq_body_local_iseq(const rb_iseq_t *iseq) { |