[ruby-cvs:68875] ko1:r61694 (trunk): use `getblockparamproxy` to pass blocks.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Jan 9 01:06:34 JST 2018


ko1	2018-01-09 01:06:33 +0900 (Tue, 09 Jan 2018)

  New Revision: 61694

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

  Log:
    use `getblockparamproxy` to pass blocks.
    
    * compile.c (setup_args): use `getblockparamproxy` (`rb_block_param_proxy`)
      to represent a block parameter passing.
    
    * vm_args.c (vm_caller_setup_arg_block): check `rb_block_param_proxy`
      instead of using `VM_CALL_ARGS_BLOCKARG_BLOCKPARAM` call flag.
    
    * vm_core.h (VM_CALL_ARGS_BLOCKARG_BLOCKPARAM): removed.

  Modified files:
    trunk/compile.c
    trunk/iseq.c
    trunk/vm_args.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list