ruby-changes:46900
From: ko1 <ko1@a...>
Date: Mon, 5 Jun 2017 14:44:04 +0900 (JST)
Subject: [ruby-changes:46900] ko1:r59014 (trunk): remove arg_setup_lambda.
ko1 2017-06-05 14:43:58 +0900 (Mon, 05 Jun 2017) New Revision: 59014 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59014 Log: remove arg_setup_lambda. * vm_args.c (enum arg_setup_type): remove arg_setup_lambda because it is same as arg_setup_method. Modified files: trunk/vm.c trunk/vm_args.c trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 59013) +++ vm_insnhelper.c (revision 59014) @@ -2677,7 +2677,7 @@ vm_invoke_iseq_block(rb_thread_t *th, rb https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2677 const rb_iseq_t *iseq = rb_iseq_check(captured->code.iseq); const int arg_size = iseq->body->param.size; VALUE * const rsp = GET_SP() - calling->argc; - int opt_pc = vm_callee_setup_block_arg(th, calling, ci, iseq, rsp, is_lambda ? arg_setup_lambda : arg_setup_block); + int opt_pc = vm_callee_setup_block_arg(th, calling, ci, iseq, rsp, is_lambda ? arg_setup_method : arg_setup_block); SET_SP(rsp); Index: vm_args.c =================================================================== --- vm_args.c (revision 59013) +++ vm_args.c (revision 59014) @@ -29,8 +29,7 @@ struct args_info { https://github.com/ruby/ruby/blob/trunk/vm_args.c#L29 enum arg_setup_type { arg_setup_method, - arg_setup_block, - arg_setup_lambda + arg_setup_block }; static inline int @@ -595,8 +594,6 @@ setup_parameters_complex(rb_thread_t * c https://github.com/ruby/ruby/blob/trunk/vm_args.c#L594 given_argc = RARRAY_LENINT(args->rest); } break; - case arg_setup_lambda: - break; } /* argc check */ Index: vm.c =================================================================== --- vm.c (revision 59013) +++ vm.c (revision 59014) @@ -1021,7 +1021,7 @@ invoke_iseq_block_from_c(rb_thread_t *th https://github.com/ruby/ruby/blob/trunk/vm.c#L1021 } opt_pc = vm_yield_setup_args(th, iseq, argc, sp, passed_block_handler, - (is_lambda ? (splattable ? arg_setup_lambda : arg_setup_method) : arg_setup_block)); + (is_lambda ? arg_setup_method : arg_setup_block)); cfp->sp = sp; if (me == NULL) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/