ruby-changes:57475
From: Jeremy <ko1@a...>
Date: Mon, 2 Sep 2019 11:48:00 +0900 (JST)
Subject: [ruby-changes:57475] Jeremy Evans: f58db5a6f5 (master): Simplify setting of VM_CALL_KW_SPLAT in vm_call_method_missing
https://git.ruby-lang.org/ruby.git/commit/?id=f58db5a6f5 From f58db5a6f5c7b5c2f5f8471adcf8b1fe9577c01a Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Sun, 1 Sep 2019 19:46:19 -0700 Subject: Simplify setting of VM_CALL_KW_SPLAT in vm_call_method_missing Pointed out by ko1. diff --git a/vm_insnhelper.c b/vm_insnhelper.c index c65a9e2..1851787 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2407,10 +2407,7 @@ vm_call_method_missing(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2407 CALLER_SETUP_ARG(reg_cfp, calling, orig_ci, 0); argc = calling->argc+1; - ci_entry.flag = VM_CALL_FCALL | VM_CALL_OPT_SEND; - if (orig_ci->flag & VM_CALL_KW_SPLAT) { - ci_entry.flag |= VM_CALL_KW_SPLAT; - } + ci_entry.flag = VM_CALL_FCALL | VM_CALL_OPT_SEND | (orig_ci->flag & VM_CALL_KW_SPLAT); ci_entry.mid = idMethodMissing; ci_entry.orig_argc = argc; ci = &ci_entry; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/