From 6f817b6dd2d0c749a6657077845331130a1fa4da Mon Sep 17 00:00:00 2001
From: ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sat, 12 Sep 2009 17:16:27 +0000
Subject: * vm_core.h: change members of iseq_inline_cache_entry.   make cache
 value members to one union member "ic_value". * insns.def: ditto. *
 vm_insnhelper.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 4acbcef1cb..3b52527e2e 100644
--- a/insns.def
+++ b/insns.def
@@ -1174,7 +1174,7 @@ getinlinecache
 (VALUE val)
 {
     if (ic->ic_vmstat == GET_VM_STATE_VERSION()) {
-	val = ic->ic_value;
+	val = ic->ic_value.value;
 	JUMP(dst);
     }
     else {
@@ -1195,12 +1195,12 @@ onceinlinecache
 (VALUE val)
 {
     if (ic->ic_vmstat) {
-	val = ic->ic_value;
+	val = ic->ic_value.value;
 	JUMP(dst);
     }
     else {
 	/* none */
-	ic->ic_value = Qundef;
+	ic->ic_value.value = Qundef;
 	val = Qnil;
     }
 }
@@ -1218,10 +1218,10 @@ setinlinecache
 {
     IC ic = GET_CONST_INLINE_CACHE(dst);
 
-    if (ic->ic_value == Qundef) {
+    if (ic->ic_value.value == Qundef) {
 	rb_ary_push(GET_ISEQ()->mark_ary, val);
     }
-    ic->ic_value = val;
+    ic->ic_value.value = val;
     ic->ic_vmstat = GET_VM_STATE_VERSION() - ruby_vm_const_missing_count;
     ruby_vm_const_missing_count = 0;
 }
-- 
cgit v1.2.3

