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

ruby-changes:40287

From: ko1 <ko1@a...>
Date: Fri, 30 Oct 2015 06:21:18 +0900 (JST)
Subject: [ruby-changes:40287] ko1:r52368 (trunk): * insns.def: nobody set ic->ic_value.value to Qundef.

ko1	2015-10-30 06:21:13 +0900 (Fri, 30 Oct 2015)

  New Revision: 52368

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

  Log:
    * insns.def: nobody set ic->ic_value.value to Qundef.

  Modified files:
    trunk/ChangeLog
    trunk/insns.def
Index: insns.def
===================================================================
--- insns.def	(revision 52367)
+++ insns.def	(revision 52368)
@@ -1185,9 +1185,7 @@ setinlinecache https://github.com/ruby/ruby/blob/trunk/insns.def#L1185
 (VALUE val)
 (VALUE val)
 {
-    if (ic->ic_value.value == Qundef) {
-	rb_iseq_add_mark_object(GET_ISEQ(), val);
-    }
+    VM_ASSERT(ic->ic_value.value != Qundef);
     ic->ic_value.value = val;
     ic->ic_serial = GET_GLOBAL_CONSTANT_STATE() - ruby_vm_const_missing_count;
     ic->ic_cref = rb_vm_get_cref(GET_EP());
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52367)
+++ ChangeLog	(revision 52368)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 30 06:20:40 2015  Koichi Sasada  <ko1@a...>
+
+	* insns.def: nobody set ic->ic_value.value to Qundef.
+
 Fri Oct 30 06:15:50 2015  Koichi Sasada  <ko1@a...>
 
 	* vm.c: add ifndef guard for VM_CHECK_MODE.

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

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