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

ruby-changes:49462

From: nobu <ko1@a...>
Date: Wed, 3 Jan 2018 22:58:32 +0900 (JST)
Subject: [ruby-changes:49462] nobu:r61578 (trunk): compile.c: label sp

nobu	2018-01-03 22:58:27 +0900 (Wed, 03 Jan 2018)

  New Revision: 61578

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

  Log:
    compile.c: label sp
    
    * compile.c (dump_disasm_list_with_cursor): show stack depth for
      each label.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 61577)
+++ compile.c	(revision 61578)
@@ -7258,7 +7258,8 @@ dump_disasm_list_with_cursor(const LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L7258
 	  case ISEQ_ELEMENT_LABEL:
 	    {
 		lobj = (LABEL *)link;
-		printf(LABEL_FORMAT"%s\n", lobj->label_no, dest == lobj ? " <---" : "");
+		printf(LABEL_FORMAT" [sp: %d]%s\n", lobj->label_no, lobj->sp,
+		       dest == lobj ? " <---" : "");
 		break;
 	    }
 	  case ISEQ_ELEMENT_TRACE:

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

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