ruby-changes:26279
From: nobu <ko1@a...>
Date: Wed, 12 Dec 2012 13:39:58 +0900 (JST)
Subject: [ruby-changes:26279] nobu:r38336 (trunk): vm_insnhelper.c: common code
nobu 2012-12-12 13:39:48 +0900 (Wed, 12 Dec 2012) New Revision: 38336 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38336 Log: vm_insnhelper.c: common code * vm_insnhelper.c (vm_getivar, vm_setivar): unify common code irrelevant to the condition. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 38335) +++ vm_insnhelper.c (revision 38336) @@ -537,12 +537,8 @@ } return val; } - else { - return rb_ivar_get(obj, id); - } -#else +#endif /* USE_IC_FOR_IVAR */ return rb_ivar_get(obj, id); -#endif } static inline void @@ -587,10 +583,8 @@ /* fall through */ } } +#endif /* USE_IC_FOR_IVAR */ rb_ivar_set(obj, id, val); -#else - rb_ivar_set(obj, id, val); -#endif } static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/