ruby-changes:57599
From: Jeremy <ko1@a...>
Date: Fri, 6 Sep 2019 14:05:15 +0900 (JST)
Subject: [ruby-changes:57599] e3cb3e11af (master): Set VM_FRAME_FLAG_CFRAME_KW if kw_splat set in vm_yield_with_cfunc
https://git.ruby-lang.org/ruby.git/commit/?id=e3cb3e11af From e3cb3e11af4323aba002a84044375180dd24248c Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Tue, 3 Sep 2019 11:55:32 -0700 Subject: Set VM_FRAME_FLAG_CFRAME_KW if kw_splat set in vm_yield_with_cfunc diff --git a/vm_insnhelper.c b/vm_insnhelper.c index ec5b874..2d10b58 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2866,11 +2866,10 @@ vm_yield_with_cfunc(rb_execution_context_t *ec, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2866 } blockarg = rb_vm_bh_to_procval(ec, block_handler); - /* XXX: Set VM_FRAME_FLAG_CFRAME_KW https://github.com/ruby/ruby/pull/2422 */ vm_push_frame(ec, (const rb_iseq_t *)captured->code.ifunc, VM_FRAME_MAGIC_IFUNC | VM_FRAME_FLAG_CFRAME | - (me ? VM_FRAME_FLAG_BMETHOD : 0), + (me ? VM_FRAME_FLAG_BMETHOD : 0) | (kw_splat ? VM_FRAME_FLAG_CFRAME_KW : 0), self, VM_GUARDED_PREV_EP(captured->ep), (VALUE)me, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/