ruby-changes:18202
From: nobu <ko1@a...>
Date: Thu, 16 Dec 2010 07:52:22 +0900 (JST)
Subject: [ruby-changes:18202] Ruby:r30223 (trunk): * iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file
nobu 2010-12-16 07:51:51 +0900 (Thu, 16 Dec 2010) New Revision: 30223 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30223 Log: * iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file is always zero-cleared. Modified files: trunk/ChangeLog trunk/iseq.c trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30222) +++ ChangeLog (revision 30223) @@ -1,3 +1,8 @@ +Thu Dec 16 07:51:47 2010 Nobuyoshi Nakada <nobu@r...> + + * iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file + is always zero-cleared. + Wed Dec 15 20:45:02 2010 NAKAMURA Usaku <usa@r...> * lib/test/unit.rb (process_args): need to setup @help to print options. Index: iseq.c =================================================================== --- iseq.c (revision 30222) +++ iseq.c (revision 30223) @@ -183,11 +183,9 @@ if (type == ISEQ_TYPE_TOP) { /* toplevel is private */ iseq->cref_stack = NEW_BLOCK(rb_cObject); - iseq->cref_stack->nd_file = 0; iseq->cref_stack->nd_visi = NOEX_PRIVATE; if (th->top_wrapper) { NODE *cref = NEW_BLOCK(th->top_wrapper); - cref->nd_file = 0; cref->nd_visi = NOEX_PRIVATE; cref->nd_next = iseq->cref_stack; iseq->cref_stack = cref; @@ -195,7 +193,6 @@ } else if (type == ISEQ_TYPE_METHOD || type == ISEQ_TYPE_CLASS) { iseq->cref_stack = NEW_BLOCK(0); /* place holder */ - iseq->cref_stack->nd_file = 0; } else if (RTEST(parent)) { rb_iseq_t *piseq; Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 30222) +++ vm_insnhelper.c (revision 30223) @@ -1087,7 +1087,6 @@ { rb_control_frame_t *cfp = vm_get_ruby_level_caller_cfp(th, th->cfp); NODE *cref = NEW_BLOCK(klass); - cref->nd_file = 0; cref->nd_visi = noex; if (blockptr) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/