[ruby-cvs:61314] mame:r54153 (trunk): * compile.c (NODE_CALL): add optimization shortcut for Array#max/min.

mame at ruby-lang.org mame at ruby-lang.org
Thu Mar 17 21:47:32 JST 2016


mame	2016-03-17 21:47:31 +0900 (Thu, 17 Mar 2016)

  New Revision: 54153

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

  Log:
    * compile.c (NODE_CALL): add optimization shortcut for Array#max/min.
      Now `[x, y].max` is optimized so that a temporal array object is not
      created in some condition.
    
    * insns.def (opt_newarray_max, opt_newarray_min): added.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/defs/id.def
    trunk/insns.def
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list