From f5090e2f5ca5d5e0353659bdcba3c0a09e908178 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Wed, 13 Dec 2017 16:07:52 +0000 Subject: iseq.c: dump type of branchiftype on disasm This makes easier to debug scripts related to r59950. * before $ ./ruby --dump=insns -e '"#{a}"' == disasm: #@-e>============================================ 0000 putobject "" ( 1)[Li] 0002 putself 0003 opt_send_without_block , 0006 dup 0007 branchiftype 5, 15 0010 dup 0011 opt_send_without_block , 0014 tostring 0015 concatstrings 2 0017 leave * after $ ./ruby --dump=insns -e '"#{a}"' == disasm: #@-e>============================================ 0000 putobject "" ( 1)[Li] 0002 putself 0003 opt_send_without_block , 0006 dup 0007 branchiftype T_STRING, 15 0010 dup 0011 opt_send_without_block , 0014 tostring 0015 concatstrings 2 0017 leave git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 0198f3f5d4..a62e2a7a62 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -440,7 +440,7 @@ rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv, return vm_call0(ec, recv, mid, argc, argv, me); } -static const char * +const char * rb_type_str(enum ruby_value_type type) { #define type_case(t) case t: return #t; -- cgit v1.2.3