diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:44:26 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:59:50 -0800 |
commit | 9ad19069f9d10dcab33bcee8502d587020bad2a4 (patch) | |
tree | 9d8d1286f69ba1bf38f65b822dc931ed8cac48a4 /rjit.c | |
parent | 4bf037bebdc37671ca292dc8f500e1bede077163 (diff) |
Remove obsoleted functions in rjit.c
Diffstat (limited to 'rjit.c')
-rw-r--r-- | rjit.c | 96 |
1 files changed, 3 insertions, 93 deletions
@@ -99,15 +99,8 @@ verbose(int level, const char *format, ...) } } -int -rjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const struct rb_iseq_constant_body *captured_iseq) -{ - // TODO: remove this - return 0; -} - void -rjit_cancel_all(const char *reason) +rb_rjit_cancel_all(const char *reason) { if (!rjit_enabled) return; @@ -120,15 +113,9 @@ rjit_cancel_all(const char *reason) } void -rjit_free_iseq(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - -void -rjit_notify_waitpid(int exit_code) +rb_rjit_free_iseq(const rb_iseq_t *iseq) { - // TODO: remove this function + // TODO: implement this. GC_REFS should remove this iseq's mjit_blocks } // RubyVM::RJIT @@ -144,49 +131,6 @@ static VALUE rb_cRJITCfpPtr = 0; // RubyVM::RJIT::Hooks static VALUE rb_mRJITHooks = 0; -void -rb_rjit_add_iseq_to_process(const rb_iseq_t *iseq) -{ - // TODO: implement -} - -struct rb_rjit_compile_info* -rb_rjit_iseq_compile_info(const struct rb_iseq_constant_body *body) -{ - // TODO: remove this - return NULL; -} - -void -rb_rjit_recompile_send(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - -void -rb_rjit_recompile_ivar(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - -void -rb_rjit_recompile_exivar(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - -void -rb_rjit_recompile_inlining(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - -void -rb_rjit_recompile_const(const rb_iseq_t *iseq) -{ - // TODO: remove this -} - // Default permitted number of units with a JIT code kept in memory. #define DEFAULT_MAX_CACHE_SIZE 100 // A default threshold used to add iseq to JIT. @@ -236,34 +180,6 @@ const struct ruby_opt_message rjit_option_messages[] = { }; #undef M -VALUE -rjit_pause(bool wait_p) -{ - // TODO: remove this - return Qtrue; -} - -VALUE -rjit_resume(void) -{ - // TODO: remove this - return Qnil; -} - -void -rjit_child_after_fork(void) -{ - // TODO: remove this -} - -// Compile ISeq to C code in `f`. It returns true if it succeeds to compile. -bool -rjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id) -{ - // TODO: implement - return false; -} - //================================================================================ // // New stuff from here @@ -621,12 +537,6 @@ rjit_init(const struct rjit_options *opts) #endif } -void -rjit_finish(bool close_handle_p) -{ - // TODO: implement -} - // Same as `RubyVM::RJIT::C.enabled?`, but this is used before rjit_init. static VALUE rjit_stats_enabled_p(rb_execution_context_t *ec, VALUE self) |