summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-08 03:06:13 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-08 03:06:13 +0000
commitd928280cb6644d2d899aadf7bfc8cf4e1b5e2997 (patch)
treec366adbd42bc4330b4009a5da44936e981c10c3d /vm_insnhelper.c
parentdb051011d68950cd1261f91e724513282d419d9e (diff)
* 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
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 0 insertions, 2 deletions
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);