From 9ad19069f9d10dcab33bcee8502d587020bad2a4 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 7 Mar 2023 23:44:26 -0800 Subject: Remove obsoleted functions in rjit.c --- rjit.c | 96 +++--------------------------------------------------------------- 1 file changed, 3 insertions(+), 93 deletions(-) (limited to 'rjit.c') diff --git a/rjit.c b/rjit.c index 1997db76ba..6ea880f7f4 100644 --- a/rjit.c +++ b/rjit.c @@ -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) -- cgit v1.2.1