[ruby-cvs:67276] glass:r60095 (trunk): vm_eval.c: add rb_yield_assoc_or_values()

glass at ruby-lang.org glass at ruby-lang.org
Mon Oct 2 14:29:11 JST 2017


glass	2017-10-02 14:29:11 +0900 (Mon, 02 Oct 2017)

  New Revision: 60095

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

  Log:
    vm_eval.c: add rb_yield_assoc_or_values()
    
    The new function rb_yield_assoc_or_values() will reduce branching.
    
    * vm_eval.c: add rb_yield_assoc_or_values()
    
    * internal.h: ditto
    
    * hash.c: use rb_yield_assoc_or_values()
    
    * struct.c: ditto

  Modified files:
    trunk/hash.c
    trunk/internal.h
    trunk/struct.c
    trunk/vm_eval.c


More information about the ruby-cvs mailing list