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

ruby-changes:48188

From: yui-knk <ko1@a...>
Date: Sun, 22 Oct 2017 00:56:09 +0900 (JST)
Subject: [ruby-changes:48188] yui-knk:r60302 (trunk): Remove not used node_type NODE_IASGN2

yui-knk	2017-10-22 00:56:03 +0900 (Sun, 22 Oct 2017)

  New Revision: 60302

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60302

  Log:
    Remove not used node_type NODE_IASGN2
    
    * compile.c (compile_massign_opt, iseq_compile_each0): This
      node_type has not been used since r11813.
    * ext/objspace/objspace.c (count_nodes): ditto
    * node.c (dump_node, rb_gc_mark_node): ditto
    * node.h (node_type, NEW_IASGN2): ditto
    * parse.y (node_assign_gen): ditto

  Modified files:
    trunk/compile.c
    trunk/ext/objspace/objspace.c
    trunk/node.c
    trunk/node.h
    trunk/parse.y
Index: node.c
===================================================================
--- node.c	(revision 60301)
+++ node.c	(revision 60302)
@@ -1034,7 +1034,6 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L1034
 	F_NODE(nd_body, "body");
 	return;
 
-      case NODE_IASGN2:
       case NODE_CVDECL:
       case NODE_ARGS_AUX:
       case NODE_TO_ARY:
@@ -1154,7 +1153,6 @@ rb_gc_mark_node(NODE *obj) https://github.com/ruby/ruby/blob/trunk/node.c#L1153
       case NODE_DASGN:
       case NODE_DASGN_CURR:
       case NODE_IASGN:
-      case NODE_IASGN2:
       case NODE_CVASGN:
       case NODE_COLON3:
       case NODE_OPT_N:
Index: node.h
===================================================================
--- node.h	(revision 60301)
+++ node.h	(revision 60302)
@@ -74,8 +74,6 @@ enum node_type { https://github.com/ruby/ruby/blob/trunk/node.h#L74
 #define NODE_GASGN       NODE_GASGN
     NODE_IASGN,
 #define NODE_IASGN       NODE_IASGN
-    NODE_IASGN2,
-#define NODE_IASGN2      NODE_IASGN2
     NODE_CDECL,
 #define NODE_CDECL       NODE_CDECL
     NODE_CVASGN,
@@ -391,7 +389,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L389
 #define NEW_DASGN(v,val) NEW_NODE(NODE_DASGN,v,val,0)
 #define NEW_DASGN_CURR(v,val) NEW_NODE(NODE_DASGN_CURR,v,val,0)
 #define NEW_IASGN(v,val) NEW_NODE(NODE_IASGN,v,val,0)
-#define NEW_IASGN2(v,val) NEW_NODE(NODE_IASGN2,v,val,0)
 #define NEW_CDECL(v,val,path) NEW_NODE(NODE_CDECL,v,val,path)
 #define NEW_CVASGN(v,val) NEW_NODE(NODE_CVASGN,v,val,0)
 #define NEW_CVDECL(v,val) NEW_NODE(NODE_CVDECL,v,val,0)
Index: parse.y
===================================================================
--- parse.y	(revision 60301)
+++ parse.y	(revision 60302)
@@ -9934,7 +9934,6 @@ node_assign_gen(struct parser_params *pa https://github.com/ruby/ruby/blob/trunk/parse.y#L9934
     switch (nd_type(lhs)) {
       case NODE_GASGN:
       case NODE_IASGN:
-      case NODE_IASGN2:
       case NODE_LASGN:
       case NODE_DASGN:
       case NODE_DASGN_CURR:
Index: ext/objspace/objspace.c
===================================================================
--- ext/objspace/objspace.c	(revision 60301)
+++ ext/objspace/objspace.c	(revision 60302)
@@ -397,7 +397,6 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L397
 		COUNT_NODE(NODE_DASGN_CURR);
 		COUNT_NODE(NODE_GASGN);
 		COUNT_NODE(NODE_IASGN);
-		COUNT_NODE(NODE_IASGN2);
 		COUNT_NODE(NODE_CDECL);
 		COUNT_NODE(NODE_CVASGN);
 		COUNT_NODE(NODE_CVDECL);
Index: compile.c
===================================================================
--- compile.c	(revision 60301)
+++ compile.c	(revision 60302)
@@ -3557,7 +3557,6 @@ compile_massign_opt(rb_iseq_t *iseq, LIN https://github.com/ruby/ruby/blob/trunk/compile.c#L3557
 	  case NODE_DASGN:
 	  case NODE_DASGN_CURR:
 	  case NODE_IASGN:
-	  case NODE_IASGN2:
 	  case NODE_CVASGN:
 	    MEMORY(ln->nd_vid);
 	    break;
@@ -5161,8 +5160,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L5160
 		  ((VALUE)node->nd_entry | 1));
 	break;
       }
-      case NODE_IASGN:
-      case NODE_IASGN2:{
+      case NODE_IASGN:{
 	CHECK(COMPILE(ret, "lvalue", node->nd_value));
 	if (!popped) {
 	    ADD_INSN(ret, line, dup);

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

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