ruby-changes:51439
From: mame <ko1@a...>
Date: Wed, 13 Jun 2018 13:51:53 +0900 (JST)
Subject: [ruby-changes:51439] mame:r63645 (trunk): Make VM_INSN_INFO_TABLE_IMPL=1 work
mame 2018-06-13 13:51:43 +0900 (Wed, 13 Jun 2018) New Revision: 63645 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63645 Log: Make VM_INSN_INFO_TABLE_IMPL=1 work rb_iseq_insns_info_decode_positions is used only when VM_INSN_INFO_TABLE_IMPL=2. Modified files: trunk/iseq.c trunk/iseq.h Index: iseq.c =================================================================== --- iseq.c (revision 63644) +++ iseq.c (revision 63645) @@ -493,16 +493,16 @@ rb_iseq_insns_info_encode_positions(cons https://github.com/ruby/ruby/blob/trunk/iseq.c#L493 #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) Index: iseq.h =================================================================== --- iseq.h (revision 63644) +++ iseq.h (revision 63645) @@ -143,7 +143,9 @@ VALUE iseq_ibf_dump(const rb_iseq_t *ise https://github.com/ruby/ruby/blob/trunk/iseq.h#L143 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/