ruby-changes:57662
From: Yusuke <ko1@a...>
Date: Sun, 8 Sep 2019 01:22:41 +0900 (JST)
Subject: [ruby-changes:57662] 4f63634af1 (master): compile.c (NODE_OP_ASGN1): Remove unneeded DECL_ANCHOR
https://git.ruby-lang.org/ruby.git/commit/?id=4f63634af1 From 4f63634af1fdce87c842f79fcb489ff2f7e4fee8 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 8 Sep 2019 01:21:19 +0900 Subject: compile.c (NODE_OP_ASGN1): Remove unneeded DECL_ANCHOR diff --git a/compile.c b/compile.c index 4bae114..7a82771 100644 --- a/compile.c +++ b/compile.c @@ -7009,7 +7009,6 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in https://github.com/ruby/ruby/blob/trunk/compile.c#L7009 break; } case NODE_OP_ASGN1: { - DECL_ANCHOR(args); VALUE argc; unsigned int flag = 0; unsigned int asgnflag = 0; @@ -7051,10 +7050,8 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in https://github.com/ruby/ruby/blob/trunk/compile.c#L7050 boff = 1; /* fall through */ default: - INIT_ANCHOR(args); - argc = setup_args(iseq, args, node->nd_args->nd_head, &flag, NULL); + argc = setup_args(iseq, ret, node->nd_args->nd_head, &flag, NULL); CHECK(!NIL_P(argc)); - ADD_SEQ(ret, args); } ADD_INSN1(ret, line, dupn, FIXNUM_INC(argc, 1 + boff)); ADD_SEND_WITH_FLAG(ret, line, idAREF, argc, INT2FIX(flag)); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/