From 7b01b969f55b9666068104cde3c6c53106ba8080 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 26 Sep 2017 16:06:27 +0900 Subject: `codedump` to display `OP_CALL`. --- src/codedump.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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)]), -- cgit v1.2.3