Project

General

Profile

« Previous | Next » 

Revision 2d414cb1

Added by naruse (Yui NARUSE) about 6 years ago

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e