ruby-changes:25192
From: ko1 <ko1@a...>
Date: Wed, 17 Oct 2012 16:25:04 +0900 (JST)
Subject: [ruby-changes:25192] ko1:r37244 (trunk): * vm_insnhelper.c (vm_getivar): fix to use `aux.index' instead of
ko1 2012-10-17 16:24:52 +0900 (Wed, 17 Oct 2012) New Revision: 37244 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37244 Log: * vm_insnhelper.c (vm_getivar): fix to use `aux.index' instead of `aux.opt_pc'. Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37243) +++ ChangeLog (revision 37244) @@ -1,3 +1,8 @@ +Wed Oct 17 16:23:17 2012 Koichi Sasada <ko1@a...> + + * vm_insnhelper.c (vm_getivar): fix to use `aux.index' instead of + `aux.opt_pc'. + Wed Oct 17 16:03:54 2012 Koichi Sasada <ko1@a...> * vm_insnhelper.c (vm_call_method_missing): make a refactoring Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 37243) +++ vm_insnhelper.c (revision 37244) @@ -502,7 +502,7 @@ if (LIKELY((!is_attr && (ic->ic_class == klass && ic->ic_vmstat == GET_VM_STATE_VERSION())) || (is_attr && ci->aux.index > 0))) { - long index = !is_attr ? ic->ic_value.index : ci->aux.opt_pc - 1; + long index = !is_attr ? ic->ic_value.index : ci->aux.index - 1; long len = ROBJECT_NUMIV(obj); VALUE *ptr = ROBJECT_IVPTR(obj); @@ -527,7 +527,7 @@ ic->ic_vmstat = GET_VM_STATE_VERSION(); } else { /* call_info */ - ci->aux.opt_pc = index + 1; + ci->aux.index = index + 1; } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/