* class.c (clone_method): fixed missing assignment introduced by

previous commit.

* vm_insnhelper.c (rb_vm_rewrite_cref_stack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-02-25 08:31:54 +00:00
parent 852d56ff80
commit 967f56114a
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,10 @@
Wed Feb 25 17:30:10 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* class.c (clone_method): fixed missing assignment introduced by
previous commit.
* vm_insnhelper.c (rb_vm_rewrite_cref_stack): ditto.
Wed Feb 25 15:07:01 2015 Kazuki Tsujimoto <kazuki@callcc.net>
* vm_insnhelper.c (rb_vm_rewrite_cref_stack): copy nd_refinements

View file

@ -131,6 +131,7 @@ clone_method(VALUE klass, ID mid, const rb_method_entry_t *me)
newiseqval = rb_iseq_clone(me->def->body.iseq->self, klass);
GetISeqPtr(newiseqval, iseq);
rb_vm_rewrite_cref_stack(me->def->body.iseq->cref_stack, me->klass, klass, &new_cref);
iseq->cref_stack = new_cref;
rb_add_method(klass, mid, VM_METHOD_TYPE_ISEQ, iseq, me->flag);
RB_GC_GUARD(newiseqval);
}

View file

@ -1,6 +1,6 @@
#define RUBY_VERSION "2.0.0"
#define RUBY_RELEASE_DATE "2015-02-25"
#define RUBY_PATCHLEVEL 642
#define RUBY_PATCHLEVEL 643
#define RUBY_RELEASE_YEAR 2015
#define RUBY_RELEASE_MONTH 2

View file

@ -303,6 +303,7 @@ rb_vm_rewrite_cref_stack(NODE *node, VALUE old_klass, VALUE new_klass, NODE **ne
if (node->nd_clss == old_klass) {
new_node = NEW_CREF(new_klass);
COPY_CREF_OMOD(new_node, node);
new_node->nd_next = node->nd_next;
*new_cref_ptr = new_node;
return;
}