diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-19 12:03:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-19 12:03:12 +0900 |
| commit | 5d5e4f521464d134250501774f49f61f11dc3997 (patch) | |
| tree | b60ec512cf477d04df4e459b879a24b9f80cb9d4 /src/codedump.c | |
| parent | 45491cdd8cc00e837448184150e1b3f36f46bf84 (diff) | |
| download | mruby-5d5e4f521464d134250501774f49f61f11dc3997.tar.gz mruby-5d5e4f521464d134250501774f49f61f11dc3997.zip | |
ops.h: add new instructions `OP_SSEND` and `OP_SSENDB`.
These instructions call methods of the receiver.
Diffstat (limited to 'src/codedump.c')
| -rw-r--r-- | src/codedump.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/codedump.c b/src/codedump.c index 6a9fcfb6a..28c8040c4 100644 --- a/src/codedump.c +++ b/src/codedump.c @@ -318,6 +318,14 @@ codedump(mrb_state *mrb, const mrb_irep *irep) printf("OP_JMPNIL\tR%d\t%03d\t", a, (int)i+(int16_t)b); print_lv_a(mrb, irep, a); break; + CASE(OP_SSEND, BBB): + printf("OP_SSEND\tR%d\t:%s\t", a, mrb_sym_dump(mrb, irep->syms[b])); + print_args(c); + break; + CASE(OP_SSENDB, BBB): + printf("OP_SSENDB\tR%d\t:%s\t", a, mrb_sym_dump(mrb, irep->syms[b])); + print_args(c); + break; CASE(OP_SEND, BBB): printf("OP_SEND\tR%d\t:%s\t", a, mrb_sym_dump(mrb, irep->syms[b])); print_args(c); |
