Remove unused function
This commit is contained in:
parent
7eea96c780
commit
25eed28483
16
yjit_iface.c
16
yjit_iface.c
@ -60,22 +60,6 @@ yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx)
|
||||
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)
|
||||
|
@ -122,7 +122,6 @@ RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user