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

ruby-changes:19397

From: nagachika <ko1@a...>
Date: Thu, 5 May 2011 17:45:23 +0900 (JST)
Subject: [ruby-changes:19397] Ruby:r31437 (trunk): * eval.c (frame_func_id): store result of method_entry_of_iseq() to

nagachika	2011-05-05 17:39:22 +0900 (Thu, 05 May 2011)

  New Revision: 31437

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31437

  Log:
    * eval.c (frame_func_id): store result of method_entry_of_iseq() to
          cfp->me because method_entry_of_iseq() might become expensive.

  Modified files:
    trunk/ChangeLog
    trunk/eval.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31436)
+++ ChangeLog	(revision 31437)
@@ -1,3 +1,8 @@
+Thu May  5 17:36:31 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
+
+	* eval.c (frame_func_id): store result of method_entry_of_iseq() to
+	  cfp->me because method_entry_of_iseq() might become expensive.
+
 Thu May  5 15:03:51 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
 
 	* eval.c (frame_func_id): __method__ return different name from
Index: eval.c
===================================================================
--- eval.c	(revision 31436)
+++ eval.c	(revision 31437)
@@ -784,6 +784,7 @@
 	}
 	me_local = method_entry_of_iseq(cfp, iseq);
 	if (me_local) {
+	    cfp->me = me_local;
 	    return me_local->def->original_id;
 	}
 	if (iseq->defined_method_id) {

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

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