[ruby-cvs:51281] tmm1:r44136 (trunk): compile.c: add opt_aset instruction for faster Hash#[]= and Array#[]=

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Wed Dec 11 15:38:44 JST 2013


tmm1	2013-12-11 15:38:42 +0900 (Wed, 11 Dec 2013)

  New Revision: 44136

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

  Log:
    compile.c: add opt_aset instruction for faster Hash#[]= and Array#[]=
    
    * compile.c (iseq_specialized_instruction): emit opt_aset instruction
      to optimize Hash#[]= and Array#[]= when called with Fixnum argument.
      [Bug #9227] [ruby-core:58956]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c


More information about the ruby-cvs mailing list