[前][次][番号順一覧][スレッド一覧]

ruby-changes:61622

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 9 Jun 2020 09:53:22 +0900 (JST)
Subject: [ruby-changes:61622] db406daa60 (master): vm_yield_setup_args: refactor use macro

https://git.ruby-lang.org/ruby.git/commit/?id=db406daa60

From db406daa60c1cc1585dd8a7227a87d45bbd3cb89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Mon, 1 Jun 2020 15:56:54 +0900
Subject: vm_yield_setup_args: refactor use macro


diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 3024a2c..93b97f5 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3468,10 +3468,7 @@ vm_yield_setup_args(rb_execution_context_t *ec, const rb_iseq_t *iseq, const int https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3468
     calling->block_handler = block_handler;
     calling->kw_splat = kw_splat;
     calling->recv = Qundef;
-    struct rb_callinfo dummy_ci = {
-        .flags = T_IMEMO | (imemo_callinfo << FL_USHIFT),
-        .flag = (VALUE)(kw_splat ? VM_CALL_KW_SPLAT : 0),
-    };
+    struct rb_callinfo dummy_ci = VM_CI_ON_STACK(0, (kw_splat ? VM_CALL_KW_SPLAT : 0), 0, 0);
 
     return vm_callee_setup_block_arg(ec, calling, &dummy_ci, iseq, argv, arg_setup_type);
 }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]