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

ruby-changes:40588

From: ko1 <ko1@a...>
Date: Thu, 19 Nov 2015 15:33:17 +0900 (JST)
Subject: [ruby-changes:40588] ko1:r52667 (trunk): * compile.c (iseq_compile_each): T_IMEMO/iseq objects should be

ko1	2015-11-19 15:33:05 +0900 (Thu, 19 Nov 2015)

  New Revision: 52667

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

  Log:
    * compile.c (iseq_compile_each): T_IMEMO/iseq objects should be
      wrap with ISeq wrappers. [Bug #11676]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52666)
+++ ChangeLog	(revision 52667)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov 19 15:31:45 2015  Koichi Sasada  <ko1@a...>
+
+	* compile.c (iseq_compile_each): T_IMEMO/iseq objects should be
+	  wrap with ISeq wrappers. [Bug #11676]
+
 Thu Nov 19 15:16:12 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(c6b4946).
Index: compile.c
===================================================================
--- compile.c	(revision 52666)
+++ compile.c	(revision 52667)
@@ -5357,7 +5357,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L5357
 						rb_id2str(node->nd_mid),
 						ISEQ_TYPE_METHOD, line);
 
-	debugp_param("defn/iseq", (VALUE)method_iseq);
+	debugp_param("defn/iseq", rb_iseqw_new(method_iseq));
 
 	ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
 	ADD_INSN1(ret, line, putobject, ID2SYM(node->nd_mid));
@@ -5375,7 +5375,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L5375
 						      rb_id2str(node->nd_mid),
 						      ISEQ_TYPE_METHOD, line);
 
-	debugp_param("defs/iseq", (VALUE)singleton_method);
+	debugp_param("defs/iseq", rb_iseqw_new(singleton_method));
 
 	ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
 	COMPILE(ret, "defs: recv", node->nd_recv);

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

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