* eval.c (rb_method_node): search cache entry first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd0cd7f92b
commit
e0e8ee0ac8
@ -1,3 +1,7 @@
|
|||||||
|
Tue May 18 09:30:25 2004 SASADA Koichi <ko1@atdot.net>
|
||||||
|
|
||||||
|
* eval.c (rb_method_node): search cache entry first.
|
||||||
|
|
||||||
Mon May 17 16:04:06 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Mon May 17 16:04:06 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* numeric.c (flo_to_s): p 0.0 should be '0.0' not '0.0e+00'.
|
* numeric.c (flo_to_s): p 0.0 should be '0.0' not '0.0e+00'.
|
||||||
|
6
eval.c
6
eval.c
@ -452,6 +452,12 @@ rb_method_node(klass, id)
|
|||||||
ID id;
|
ID id;
|
||||||
{
|
{
|
||||||
int noex;
|
int noex;
|
||||||
|
struct cache_entry *ent;
|
||||||
|
|
||||||
|
ent = cache + EXPR1(klass, id);
|
||||||
|
if (ent->mid == id && ent->klass == klass && ent->method){
|
||||||
|
return ent->method;
|
||||||
|
}
|
||||||
|
|
||||||
return rb_get_method_body(&klass, &id, &noex);
|
return rb_get_method_body(&klass, &id, &noex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user