[ruby-cvs:68805] ko1:r61624 (trunk): Speedup `Proc#call` [Feature #14318]

ko1 at ruby-lang.org ko1 at ruby-lang.org
Sat Jan 6 02:51:10 JST 2018


ko1	2018-01-06 02:51:10 +0900 (Sat, 06 Jan 2018)

  New Revision: 61624

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

  Log:
    Speedup `Proc#call` [Feature #14318]
    
    * vm_insnhelper.c (vm_call_opt_call): do same process of `yield` instead of
      invoking `Proc`.
    
    * vm_insnhelper.c (vm_invoke_block): invoke given block handler instead of
      using a block handler in the current frame.
      Also do not check blcok handler here (caller should check it).
    
    * insns.def (invokeblock): catch up this fix.

  Modified files:
    trunk/insns.def
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list