summaryrefslogtreecommitdiffhomepage
path: root/src/codedump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-09-26 16:06:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-09-29 00:18:55 +0900
commit7b01b969f55b9666068104cde3c6c53106ba8080 (patch)
tree917175c460137ba63aeae096ab07af5bcc222b15 /src/codedump.c
parent29a9e698e33f89c18cd8f9622bd503aa55df2f51 (diff)
downloadmruby-7b01b969f55b9666068104cde3c6c53106ba8080.tar.gz
mruby-7b01b969f55b9666068104cde3c6c53106ba8080.zip
`codedump` to display `OP_CALL`.
Diffstat (limited to 'src/codedump.c')
-rw-r--r--src/codedump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codedump.c b/src/codedump.c
index e3a33419c..1133446a8 100644
--- a/src/codedump.c
+++ b/src/codedump.c
@@ -207,6 +207,9 @@ codedump(mrb_state *mrb, mrb_irep *irep)
mrb_sym2name(mrb, irep->syms[GETARG_B(c)]),
GETARG_C(c));
break;
+ case OP_CALL:
+ printf("OP_CALL\tR%d\n", GETARG_A(c));
+ break;
case OP_TAILCALL:
printf("OP_TAILCALL\tR%d\t:%s\t%d\n", GETARG_A(c),
mrb_sym2name(mrb, irep->syms[GETARG_B(c)]),