From 0ac93a1a405d3642a1e73294c04f428c79f5f947 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 13 Jul 2009 04:44:20 +0000 Subject: * insns.def, vm_insnhelper.c (getinstancevariable): fix to use inline cache. * compile.c: fix to skip inline cache entry (IC). IC is added automatically by compiler. * insns.def, vm_insnhelper.h: fix IC positions. * iseq.c: increment minor_version of ISeq because of above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 838a652672..d927807c56 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -140,7 +140,7 @@ extern VALUE ruby_vm_const_missing_count; #define GET_GLOBAL(entry) rb_gvar_get((struct global_entry*)entry) #define SET_GLOBAL(entry, val) rb_gvar_set((struct global_entry*)entry, val) -#define GET_CONST_INLINE_CACHE(dst) ((IC) * (GET_PC() + (dst) + 1)) +#define GET_CONST_INLINE_CACHE(dst) ((IC) * (GET_PC() + (dst) + 2)) /**********************************************************/ /* deal with values */ -- cgit v1.2.3