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

ruby-changes:30571

From: ko1 <ko1@a...>
Date: Thu, 22 Aug 2013 16:23:52 +0900 (JST)
Subject: [ruby-changes:30571] ko1:r42650 (trunk): * compile.c (build_postexe_iseq): fix to setup the local table.

ko1	2013-08-22 16:23:44 +0900 (Thu, 22 Aug 2013)

  New Revision: 42650

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

  Log:
    * compile.c (build_postexe_iseq): fix to setup the local table.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42649)
+++ ChangeLog	(revision 42650)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug 22 16:22:48 2013  Koichi Sasada  <ko1@a...>
+
+	* compile.c (build_postexe_iseq): fix to setup the local table.
+
 Thu Aug 22 15:42:43 2013  Koichi Sasada  <ko1@a...>
 
 	* compile.c (rb_iseq_compile_node): accept NODE_IFUNC to support
Index: compile.c
===================================================================
--- compile.c	(revision 42649)
+++ compile.c	(revision 42650)
@@ -3166,6 +3166,7 @@ build_postexe_iseq(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L3166
     VALUE block = NEW_CHILD_ISEQVAL(body, make_name_for_block(iseq->parent_iseq), ISEQ_TYPE_BLOCK, line);
     ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
     ADD_CALL_WITH_BLOCK(ret, line, ID2SYM(id_core_set_postexe), argc, block);
+    iseq_set_local_table(iseq, 0);
     return Qnil;
 }
 

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

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