mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJIT: Support invalidating constant patch points (#13998)
This commit is contained in:
parent
23000e7123
commit
a0d0b84bad
6 changed files with 108 additions and 3 deletions
2
zjit.h
2
zjit.h
|
@ -14,6 +14,7 @@ void rb_zjit_profile_enable(const rb_iseq_t *iseq);
|
|||
void rb_zjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop);
|
||||
void rb_zjit_cme_invalidate(const rb_callable_method_entry_t *cme);
|
||||
void rb_zjit_invalidate_ep_is_bp(const rb_iseq_t *iseq);
|
||||
void rb_zjit_constant_state_changed(ID id);
|
||||
void rb_zjit_iseq_mark(void *payload);
|
||||
void rb_zjit_iseq_update_references(void *payload);
|
||||
#else
|
||||
|
@ -24,6 +25,7 @@ static inline void rb_zjit_profile_enable(const rb_iseq_t *iseq) {}
|
|||
static inline void rb_zjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop) {}
|
||||
static inline void rb_zjit_cme_invalidate(const rb_callable_method_entry_t *cme) {}
|
||||
static inline void rb_zjit_invalidate_ep_is_bp(const rb_iseq_t *iseq) {}
|
||||
static inline void rb_zjit_constant_state_changed(ID id) {}
|
||||
#endif // #if USE_YJIT
|
||||
|
||||
#endif // #ifndef ZJIT_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue