From 6410a4ae27a8832d1aee4c370bbf036608a7e577 Mon Sep 17 00:00:00 2001 From: nagachika Date: Thu, 5 May 2011 08:39:22 +0000 Subject: [PATCH] * eval.c (frame_func_id): store result of method_entry_of_iseq() to cfp->me because method_entry_of_iseq() might become expensive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 45a1b66b4e..f531fae700 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu May 5 17:36:31 2011 CHIKANAGA Tomoyuki + + * eval.c (frame_func_id): store result of method_entry_of_iseq() to + cfp->me because method_entry_of_iseq() might become expensive. + Thu May 5 15:03:51 2011 CHIKANAGA Tomoyuki * eval.c (frame_func_id): __method__ return different name from diff --git a/eval.c b/eval.c index de9f6f5785..2d07719e87 100644 --- a/eval.c +++ b/eval.c @@ -784,6 +784,7 @@ frame_func_id(rb_control_frame_t *cfp) } me_local = method_entry_of_iseq(cfp, iseq); if (me_local) { + cfp->me = me_local; return me_local->def->original_id; } if (iseq->defined_method_id) {