mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
YJIT: Add RubyVM::YJIT.enable (#8705)
This commit is contained in:
parent
62e340251b
commit
6beb09c2c9
11 changed files with 111 additions and 109 deletions
6
yjit.h
6
yjit.h
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue