ruby-changes:69250
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:21 +0900 (JST)
Subject: [ruby-changes:69250] 25eed28483 (master): Remove unused function
https://git.ruby-lang.org/ruby.git/commit/?id=25eed28483 From 25eed2848344f19385b39daaac8ca5eef79f9466 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 1 Oct 2021 17:46:50 -0400 Subject: Remove unused function --- yjit_iface.c | 16 ---------------- yjit_iface.h | 1 - 2 files changed, 17 deletions(-) diff --git a/yjit_iface.c b/yjit_iface.c index e9e82ea147..8b2ffcff32 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -60,22 +60,6 @@ yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L60 return pc; } -// Keep track of mapping from instructions to generated code -// See comment for rb_encoded_insn_data in iseq.c -void -map_addr2insn(void *code_ptr, int insn) -{ - const void * const *table = rb_vm_get_insns_address_table(); - const void * const translated_address = table[insn]; - st_data_t encoded_insn_data; - if (st_lookup(rb_encoded_insn_data, (st_data_t)translated_address, &encoded_insn_data)) { - st_insert(rb_encoded_insn_data, (st_data_t)code_ptr, encoded_insn_data); - } - else { - rb_bug("yjit: failed to find info for original instruction while dealing with addr2insn"); - } -} - // For debugging. Print the disassembly of an iseq. void yjit_print_iseq(const rb_iseq_t *iseq) diff --git a/yjit_iface.h b/yjit_iface.h index 9eef02c2d9..319e877560 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -122,7 +122,6 @@ RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters; https://github.com/ruby/ruby/blob/trunk/yjit_iface.h#L122 RUBY_EXTERN struct rb_yjit_options rb_yjit_opts; -void yjit_map_addr2insn(void *code_ptr, int insn); VALUE *yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx); int yjit_opcode_at_pc(const rb_iseq_t *iseq, const VALUE *pc); void yjit_print_iseq(const rb_iseq_t *iseq); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/