[ruby-cvs:70035] naruse:r62911 (ruby_2_5): merge revision(s) 61587, 61617, 61618: [Backport #14273]

naruse at ruby-lang.org naruse at ruby-lang.org
Sun Mar 25 01:00:27 JST 2018


naruse	2018-03-25 01:00:27 +0900 (Sun, 25 Mar 2018)

  New Revision: 62911

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

  Log:
    merge revision(s) 61587,61617,61618: [Backport #14273]
    
    compile.c: next label
    
    * compile.c (compile_next): label for jump to the end of block is
      removable.
    
    compile.c: remove more unreachable chunk
    
    * compile.c (remove_unreachable_chunk): remove beyond labels to be
      removed.
    
    compile.c: fix stack consistency error
    
    * compile.c (iseq_peephole_optimize): fix stack consistency error
      from return in loop, by adding extra `pop` when replacing `jump`
      with `leave`, which is never reached but needed to adjust sp
      calculation.  [ruby-core:84589] [Bug #14273]

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/compile.c
    branches/ruby_2_5/test/ruby/test_syntax.rb
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list