From 33949a03203c7d0235ec1823b3827618237057a1 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 4 Mar 2018 07:04:28 +0000 Subject: compile.c: set catch_except_p flag to be used for MJIT's optimization. It's not used for optimization in this commit yet. vm_core.h: added catch_except_p field. iseq.c: show the flag in ISeq disasm for debugging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index b703baa2c4..27bf45fb73 100644 --- a/iseq.c +++ b/iseq.c @@ -1809,6 +1809,7 @@ rb_iseq_disasm(const rb_iseq_t *iseq) rb_str_cat2(str, "== disasm: "); rb_str_concat(str, iseq_inspect(iseq)); + rb_str_catf(str, " (catch: %s)", iseq->body->catch_except_p ? "TRUE" : "FALSE"); if ((l = RSTRING_LEN(str)) < header_minlen) { rb_str_resize(str, header_minlen); memset(RSTRING_PTR(str) + l, '=', header_minlen - l); -- cgit v1.2.3