From 6bc72d25bc2c829c05346fb71e3e85a30bf57bac Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Jan 2018 13:58:27 +0000 Subject: compile.c: label sp * compile.c (dump_disasm_list_with_cursor): show stack depth for each label. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 51d6f1be01..425d875fd1 100644 --- a/compile.c +++ b/compile.c @@ -7258,7 +7258,8 @@ dump_disasm_list_with_cursor(const LINK_ELEMENT *link, const LINK_ELEMENT *curr, 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: -- cgit v1.2.3