[ruby-cvs:64284] rhe:r57118 (trunk): proc.c: assume rb_iseq_location_t::first_lineno is always a Fixnum

rhe at ruby-lang.org rhe at ruby-lang.org
Tue Dec 20 14:26:07 JST 2016


rhe	2016-12-20 14:26:07 +0900 (Tue, 20 Dec 2016)

  New Revision: 57118

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57118

  Log:
    proc.c: assume rb_iseq_location_t::first_lineno is always a Fixnum
    
    Do not check for the value of rb_iseq_constant_body::line_info_table as
    it is no longer related. The checks seem to be the remains from the day
    before the dedicated 'first_lineno' field was introduced. Remove them.
    
    Note, rb_iseq_constant_body::line_info_table can be NULL only when the
    iseq does not contain any instructions that originate from Ruby code,
    for example, an iseq created with 'proc {}' under a non-default compile
    options where trace instructions are disabled.

  Modified files:
    trunk/proc.c
    trunk/thread.c
    trunk/vm_method.c


More information about the ruby-cvs mailing list