aboutsummaryrefslogtreecommitdiffstats
path: root/method.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-19 23:53:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-19 23:53:12 +0000
commit64e3516b2497c734baf81527885a76239c898ee5 (patch)
treec9885fd321617b032fefc19e873ae1a6c8e83189 /method.h
parent26787c7b29d3612c78306e2a9ea0382f089b5a2b (diff)
downloadruby-64e3516b2497c734baf81527885a76239c898ee5.tar.gz
vm_method.c: reuse method entry
* vm_method.c (rb_obj_respond_to): reuse found method entry instead of searching same entry repeatedly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/method.h b/method.h
index 71dc2c088b..982b1e3b7d 100644
--- a/method.h
+++ b/method.h
@@ -197,6 +197,7 @@ int rb_method_entry_arity(const rb_method_entry_t *me);
int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
st_index_t rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me);
+VALUE rb_method_entry_location(const rb_method_entry_t *me);
VALUE rb_mod_method_location(VALUE mod, ID id);
VALUE rb_obj_method_location(VALUE obj, ID id);