[前][次][番号順一覧][スレッド一覧]

ruby-changes:36598

From: nobu <ko1@a...>
Date: Tue, 2 Dec 2014 13:55:07 +0900 (JST)
Subject: [ruby-changes:36598] nobu:r48679 (trunk): iseq.c: use lvar index

nobu	2014-12-02 13:54:57 +0900 (Tue, 02 Dec 2014)

  New Revision: 48679

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48679

  Log:
    iseq.c: use lvar index
    
    * iseq.c (iseq_data_to_ary): use local variable indexes for hidden
      variable instead of meaningless ID values.

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 48678)
+++ iseq.c	(revision 48679)
@@ -1721,7 +1721,7 @@ iseq_data_to_ary(rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L1721
 		rb_ary_push(locals, ID2SYM(lid));
 	    }
 	    else { /* hidden variable from id_internal() */
-		rb_ary_push(locals, ULONG2NUM(lid));
+		rb_ary_push(locals, ULONG2NUM(iseq->local_table_size-i+1));
 	    }
 	}
 	else {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]