From d928280cb6644d2d899aadf7bfc8cf4e1b5e2997 Mon Sep 17 00:00:00 2001 From: shugo Date: Sat, 8 Dec 2012 03:06:13 +0000 Subject: * eval.c (rb_mod_refine): raise an ArgumentError if a given block is of a Proc object. * vm_insnhelper.c (vm_call_method): store refined methods in inline cache to improve performance. It's safe now because blocks cannot be yielded with different refinements in the new specification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 8c687bfbb7..4d0d6b6185 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1763,8 +1763,6 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) VALUE refinements = cref ? cref->nd_refinements : Qnil; VALUE refinement, defined_class; rb_method_entry_t *me; - ci_temp = *ci; - ci = &ci_temp; refinement = find_refinement(refinements, ci->defined_class); -- cgit v1.2.1