[ruby-cvs:71600] mame:r64508 (trunk): parse.y: remove coverage-related code fragments

mame at ruby-lang.org mame at ruby-lang.org
Wed Aug 22 19:38:57 JST 2018


mame	2018-08-22 19:38:56 +0900 (Wed, 22 Aug 2018)

  New Revision: 64508

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

  Log:
    parse.y: remove coverage-related code fragments
    
    The code fragments that initializes coverage data were scattered into
    both parse.y and compile.c.  parse.y allocated a coverage data, and
    compile.c initialize the data.
    
    To remove this cross-cutting concern, this change moves the allocation
    from "coverage" function of parse.y to "rb_iseq_new_top" of iseq.c.
    For the sake, parse.y just counts the line number of the original source
    code, and the number is passed via rb_ast_body_t.

  Modified files:
    trunk/compile.c
    trunk/iseq.c
    trunk/node.h
    trunk/parse.y
    trunk/test/coverage/test_coverage.rb
    trunk/vm.c


More information about the ruby-cvs mailing list