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

ruby-changes:12847

From: mame <ko1@a...>
Date: Wed, 19 Aug 2009 01:15:52 +0900 (JST)
Subject: [ruby-changes:12847] Ruby:r24579 (trunk): * compile.c (NODE_RETURN): fire return event at explicit return.

mame	2009-08-19 01:15:29 +0900 (Wed, 19 Aug 2009)

  New Revision: 24579

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

  Log:
    * compile.c (NODE_RETURN): fire return event at explicit return.
      [ruby-dev:38701]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24578)
+++ ChangeLog	(revision 24579)
@@ -1,3 +1,8 @@
+Wed Aug 19 01:08:34 2009  Yusuke Endoh  <mame@t...>
+
+	* compile.c (NODE_RETURN): fire return event at explicit return.
+	  [ruby-dev:38701]
+
 Tue Aug 18 21:00:26 2009  Tanaka Akira  <akr@f...>
 
 	* enumerator.c (enumerator_peek): new method Enumerator#peek.
Index: compile.c
===================================================================
--- compile.c	(revision 24578)
+++ compile.c	(revision 24579)
@@ -4205,6 +4205,7 @@
 
 		if (is->type == ISEQ_TYPE_METHOD) {
 		    add_ensure_iseq(ret, iseq, 1);
+		    ADD_TRACE(ret, nd_line(node), RUBY_EVENT_RETURN);
 		    ADD_INSN(ret, nd_line(node), leave);
 		    ADD_ADJUST_RESTORE(ret, splabel);
 

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

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