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

ruby-changes:10708

From: nobu <ko1@a...>
Date: Fri, 13 Feb 2009 01:48:24 +0900 (JST)
Subject: [ruby-changes:10708] Ruby:r22271 (trunk): * compile.c (iseq_compile_each): just freeze xstr.

nobu	2009-02-13 01:45:18 +0900 (Fri, 13 Feb 2009)

  New Revision: 22271

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

  Log:
    * compile.c (iseq_compile_each): just freeze xstr.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22270)
+++ ChangeLog	(revision 22271)
@@ -1,8 +1,10 @@
-Fri Feb 13 01:29:16 2009  Nobuyoshi Nakada  <nobu@r...>
+Fri Feb 13 01:45:17 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* compile.c (iseq_set_sequence, compile_dstr_fragments),
 	  (iseq_compile_each): hides other internal objects.
 
+	* compile.c (iseq_compile_each): just freeze xstr.
+
 Fri Feb 13 00:48:42 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* insns.def (defineclass): try to autoload const to be overridden.
Index: compile.c
===================================================================
--- compile.c	(revision 22270)
+++ compile.c	(revision 22271)
@@ -4371,7 +4371,7 @@
 	break;
       }
       case NODE_XSTR:{
-	hide_obj(node->nd_lit);
+	OBJ_FREEZE(node->nd_lit);
 	ADD_CALL_RECEIVER(ret, nd_line(node));
 	ADD_INSN1(ret, nd_line(node), putobject, node->nd_lit);
 	ADD_CALL(ret, nd_line(node), ID2SYM(idBackquote), INT2FIX(1));

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

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