mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make VM_INSN_INFO_TABLE_IMPL=1 work
rb_iseq_insns_info_decode_positions is used only when VM_INSN_INFO_TABLE_IMPL=2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b43173c64
commit
75d25ede15
2 changed files with 4 additions and 2 deletions
4
iseq.c
4
iseq.c
|
@ -493,16 +493,16 @@ rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if VM_INSN_INFO_TABLE_IMPL == 2
|
||||
unsigned int *
|
||||
rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body)
|
||||
{
|
||||
#if VM_INSN_INFO_TABLE_IMPL == 2
|
||||
int size = body->insns_info.size;
|
||||
int max_pos = body->iseq_size;
|
||||
struct succ_index_table *sd = body->insns_info.succ_index_table;
|
||||
return succ_index_table_invert(max_pos, sd, size);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
finish_iseq_build(rb_iseq_t *iseq)
|
||||
|
|
2
iseq.h
2
iseq.h
|
@ -143,7 +143,9 @@ VALUE iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt);
|
|||
void ibf_load_iseq_complete(rb_iseq_t *iseq);
|
||||
const rb_iseq_t *iseq_ibf_load(VALUE str);
|
||||
VALUE iseq_ibf_load_extra_data(VALUE str);
|
||||
#if VM_INSN_INFO_TABLE_IMPL == 2
|
||||
unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);
|
||||
#endif
|
||||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
|
||||
|
|
Loading…
Reference in a new issue