summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:16:27 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:16:27 +0000
commit6f817b6dd2d0c749a6657077845331130a1fa4da (patch)
tree6e48666a2acb43710ace626d15aedff2c2e19746 /vm_core.h
parent6bbed0e31b1d32808443b3dd3e451aad28d46096 (diff)
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm_core.h b/vm_core.h
index 9728e98a6b..6c7624193a 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -112,9 +112,11 @@ typedef struct rb_compile_option_struct {
struct iseq_inline_cache_entry {
long ic_vmstat;
VALUE ic_class;
- VALUE ic_value;
- rb_method_entry_t *ic_method;
-#define ic_index ic_vmstat
+ union {
+ VALUE value;
+ rb_method_entry_t *method;
+ long index;
+ } ic_value;
};
#if 1