mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* benchmark/bmx_temp.rb: removed.
|
||||
|
|
|
@ -843,15 +843,13 @@ static void
|
|||
vm_search_method(rb_call_info_t *ci, VALUE recv)
|
||||
{
|
||||
VALUE klass = CLASS_OF(recv);
|
||||
rb_method_entry_t *me;
|
||||
|
||||
#if OPT_INLINE_METHOD_CACHE
|
||||
if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && klass == ci->klass)) {
|
||||
/* cache hit! */
|
||||
}
|
||||
else {
|
||||
me = rb_method_entry(klass, ci->mid, &ci->defined_class);
|
||||
ci->me = me;
|
||||
ci->me = rb_method_entry(klass, ci->mid, &ci->defined_class);
|
||||
ci->klass = klass;
|
||||
ci->vmstat = GET_VM_STATE_VERSION();
|
||||
ci->call = vm_call_general;
|
||||
|
|
Loading…
Add table
Reference in a new issue