* vm_insnhelper.c (vm_search_method): remove needless local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f2a9c42c7a
commit
3daa9b9f5a
@ -1,3 +1,7 @@
|
|||||||
|
Fri Oct 19 10:24:03 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm_insnhelper.c (vm_search_method): remove needless local variable.
|
||||||
|
|
||||||
Fri Oct 19 10:22:26 2012 Koichi Sasada <ko1@atdot.net>
|
Fri Oct 19 10:22:26 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* benchmark/bmx_temp.rb: removed.
|
* benchmark/bmx_temp.rb: removed.
|
||||||
|
@ -843,15 +843,13 @@ static void
|
|||||||
vm_search_method(rb_call_info_t *ci, VALUE recv)
|
vm_search_method(rb_call_info_t *ci, VALUE recv)
|
||||||
{
|
{
|
||||||
VALUE klass = CLASS_OF(recv);
|
VALUE klass = CLASS_OF(recv);
|
||||||
rb_method_entry_t *me;
|
|
||||||
|
|
||||||
#if OPT_INLINE_METHOD_CACHE
|
#if OPT_INLINE_METHOD_CACHE
|
||||||
if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && klass == ci->klass)) {
|
if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && klass == ci->klass)) {
|
||||||
/* cache hit! */
|
/* cache hit! */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
me = rb_method_entry(klass, ci->mid, &ci->defined_class);
|
ci->me = rb_method_entry(klass, ci->mid, &ci->defined_class);
|
||||||
ci->me = me;
|
|
||||||
ci->klass = klass;
|
ci->klass = klass;
|
||||||
ci->vmstat = GET_VM_STATE_VERSION();
|
ci->vmstat = GET_VM_STATE_VERSION();
|
||||||
ci->call = vm_call_general;
|
ci->call = vm_call_general;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user