diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-10 08:53:56 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-10 08:53:56 +0000 |
commit | 6f7eda7b304388e640ec3164562ac5515364f84e (patch) | |
tree | 0ddc6371ba5b4dc41037c6f1e435be5a46ecdbdc /compile.c | |
parent | c544c98570d47f8025f810c4c29f19924e037f0c (diff) |
* compile.c (rb_vm_addr2insn): rename to rb_vm_insn_addr2insn
to clear what address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -581,16 +581,17 @@ rb_iseq_translate_threaded_code(rb_iseq_t *iseq) #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE static int -rb_vm_addr2insn(const void *addr) /* cold path */ +rb_vm_insn_addr2insn(const void *addr) /* cold path */ { int insn; const void * const *table = rb_vm_get_insns_address_table(); for (insn = 0; insn < VM_INSTRUCTION_SIZE; insn++) { - if (table[insn] == addr) + if (table[insn] == addr) { return insn; + } } - rb_bug("rb_vm_addr2insn: invalid insn address: %p", addr); + rb_bug("rb_vm_insn_addr2insn: invalid insn address: %p", addr); } #endif @@ -609,7 +610,7 @@ rb_iseq_original_iseq(rb_iseq_t *iseq) /* cold path */ for (i = 0; i < iseq->iseq_size; /* */ ) { const void *addr = (const void *)iseq->iseq[i]; - int insn = rb_vm_addr2insn(addr); + const int insn = rb_vm_insn_addr2insn(addr); iseq->iseq[i] = insn; i += insn_len(insn); |