diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-19 10:54:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 10:54:35 -0700 |
commit | 6beb09c2c99a2575027bdbc60a6fbb099416f74d (patch) | |
tree | dc0033f88b48f9cfd7ecaa67ca055a09a4437f96 /yjit.h | |
parent | 62e340251b577e3a9d11ac5c2b75ad49b8036294 (diff) |
YJIT: Add RubyVM::YJIT.enable (#8705)
Diffstat (limited to 'yjit.h')
-rw-r--r-- | yjit.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -28,9 +28,8 @@ extern uint64_t rb_yjit_call_threshold; extern uint64_t rb_yjit_cold_threshold; extern uint64_t rb_yjit_live_iseq_count; +extern bool rb_yjit_enabled_p; void rb_yjit_incr_counter(const char *counter_name); -bool rb_yjit_enabled_p(void); -bool rb_yjit_compile_new_iseqs(void); void rb_yjit_invalidate_all_method_lookup_assumptions(void); void rb_yjit_cme_invalidate(rb_callable_method_entry_t *cme); void rb_yjit_collect_binding_alloc(void); @@ -51,9 +50,8 @@ void rb_yjit_show_usage(int help, int highlight, unsigned int width, int columns // !USE_YJIT // In these builds, YJIT could never be turned on. Provide dummy implementations. +#define rb_yjit_enabled_p false static inline void rb_yjit_incr_counter(const char *counter_name) {} -static inline bool rb_yjit_enabled_p(void) { return false; } -static inline bool rb_yjit_compile_new_iseqs(void) { return false; } static inline void rb_yjit_invalidate_all_method_lookup_assumptions(void) {} static inline void rb_yjit_cme_invalidate(rb_callable_method_entry_t *cme) {} static inline void rb_yjit_collect_binding_alloc(void) {} |