[ruby-cvs:64951] nobu:r57785 (trunk): opt_eq_func refactor

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 6 15:44:11 JST 2017


nobu	2017-03-06 15:44:11 +0900 (Mon, 06 Mar 2017)

  New Revision: 57785

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

  Log:
    opt_eq_func refactor
    
    * vm_insnhelper.c (opt_eq_func): method to dispatch is resolved by
      only the receiver's class, not including the argument class.
      even if basic operation is redefined, other class conditions
      never meet.  optimize Float and non-Float case, delegate to
      rb_float_equal directly.

  Modified files:
    trunk/internal.h
    trunk/numeric.c
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list