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

ruby-changes:3961

From: ko1@a...
Date: Wed, 13 Feb 2008 03:13:29 +0900 (JST)
Subject: [ruby-changes:3961] nobu - Ruby:r15451 (trunk): * parse.y (arg_append_gen): optimize only for array push.

nobu	2008-02-13 03:13:01 +0900 (Wed, 13 Feb 2008)

  New Revision: 15451

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (arg_append_gen): optimize only for array push.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=15451&r2=15450&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15451&r2=15450&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15450)
+++ ChangeLog	(revision 15451)
@@ -1,9 +1,11 @@
-Wed Feb 13 01:27:20 2008  Nobuyoshi Nakada  <nobu@r...>
+Wed Feb 13 03:12:54 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (stmt, arg): concat opt_call_args only if non-null.
 
-	* parse.y (arg_concat_gen, arg_append_gen): optimize for array concat.
+	* parse.y (arg_concat_gen, arg_append_gen): optimize for array push.
 
+	* parse.y (arg_concat_gen): optimize for array concat.
+
 	* parse.y (arg_add_gen): removed since identical to arg_append_gen.
 
 Tue Feb 12 21:04:51 2008  Nobuyoshi Nakada  <nobu@r...>
Index: parse.y
===================================================================
--- parse.y	(revision 15450)
+++ parse.y	(revision 15451)
@@ -7823,9 +7823,6 @@
 	node1->nd_body = list_append(NEW_LIST(node1->nd_body), node2);
 	nd_set_type(node1, NODE_ARGSCAT);
 	return node1;
-      case NODE_ARGSCAT:
-	node1->nd_body = list_append(node1->nd_body, node2);
-	return node1;
     }
     return NEW_ARGSPUSH(node1, node2);
 }

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

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