From 8bfa99975c8fc9ed171549b0710cab7a395116c5 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 18 Sep 2021 12:29:58 +0900 Subject: codegen.c: unify `OP_ARYPUSH` and `OP_ARYPUSH_N`. - `OP_ARYPUSH` now takes operand for the number of pushing elements - the code generator consume the stack no more than `64` for `mruby/c` --- src/codedump.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/codedump.c') diff --git a/src/codedump.c b/src/codedump.c index 3128d7467..ab5804e20 100644 --- a/src/codedump.c +++ b/src/codedump.c @@ -431,12 +431,8 @@ codedump(mrb_state *mrb, const mrb_irep *irep) printf("OP_ARYCAT\tR%d\tR%d\t", a, a+1); print_lv_a(mrb, irep, a); break; - CASE(OP_ARYPUSH, B): - printf("OP_ARYPUSH\tR%d\t", a); - print_lv_a(mrb, irep, a); - break; - CASE(OP_ARYPUSH_N, BB): - printf("OP_ARYPUSH_N\tR%d\t%d\t", a, b); + CASE(OP_ARYPUSH, BB): + printf("OP_ARYPUSH\tR%d\t%d\t", a, b); print_lv_a(mrb, irep, a); break; CASE(OP_ARYDUP, B): -- cgit v1.2.3