[ruby-cvs:60192] normal:r53039 (trunk): insns.def (opt_case_dispatch): avoid converting Infinity

normal at ruby-lang.org normal at ruby-lang.org
Fri Dec 11 18:15:15 JST 2015


normal	2015-12-11 18:15:14 +0900 (Fri, 11 Dec 2015)

  New Revision: 53039

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

  Log:
    insns.def (opt_case_dispatch): avoid converting Infinity
    
    Infinity cannot be written as an optimizable literal,
    so it can never match a key in a CDHASH.
    Avoid converting it to prevent FloatDomainError.
    
    * insns.def (opt_case_dispatch): avoid converting Infinity
    * test/ruby/test_optimization.rb (test_opt_case_dispatch_inf): new
      [ruby-dev:49423] [Bug #11804]

  Modified files:
    trunk/ChangeLog
    trunk/insns.def
    trunk/test/ruby/test_optimization.rb


More information about the ruby-cvs mailing list