[ruby-cvs:64994] normal:r57828 (trunk): compile.c: apply opt_str_freeze to String#-@ (uminus)

normal at ruby-lang.org normal at ruby-lang.org
Sat Mar 11 05:09:06 JST 2017


normal	2017-03-11 05:09:06 +0900 (Sat, 11 Mar 2017)

  New Revision: 57828

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

  Log:
    compile.c: apply opt_str_freeze to String#-@ (uminus)
    
    The same optimization used for "literal string".freeze
    can easily apply to uminus without introducing any
    compatibility problems.

  Modified files:
    trunk/bootstraptest/test_insns.rb
    trunk/compile.c


More information about the ruby-cvs mailing list