[ruby-cvs:56019] normal:r48869 (trunk): compile.c: skip opt_* insns for fstr args with block given

normal at ruby-lang.org normal at ruby-lang.org
Wed Dec 17 09:54:15 JST 2014


normal	2014-12-17 09:54:13 +0900 (Wed, 17 Dec 2014)

  New Revision: 48869

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

  Log:
    compile.c: skip opt_* insns for fstr args with block given
    
    * compile.c (iseq_compile_each): only emit opt_str_freeze,
      opt_aref_with, and opt_aset_with insn when no block is given
      [Bug #10557] [ruby-core:66595]
    * test/ruby/test_optimization.rb (test_block_given_aset_aref):
      new test for bug thanks to Bartosz Kopinski.
      (test_string_freeze): additional assertion for object_id

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/test/ruby/test_optimization.rb


More information about the ruby-cvs mailing list