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` --- doc/opcode.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/opcode.md b/doc/opcode.md index 2a0363f55..953e9aeae 100644 --- a/doc/opcode.md +++ b/doc/opcode.md @@ -97,8 +97,7 @@ sign) of operands. | `OP_ARRAY` | `BB` | `R(a) = ary_new(R(a),R(a+1)..R(a+b))` | | `OP_ARRAY2` | `BBB` | `R(a) = ary_new(R(b),R(b+1)..R(b+c))` | | `OP_ARYCAT` | `B` | `ary_cat(R(a),R(a+1))` | -| `OP_ARYPUSH` | `B` | `ary_push(R(a),R(a+1))` | -| `OP_ARYPUSH_N` | `BB` | `ary_push(R(a),R(a+1)..R(a+b))` | +| `OP_ARYPUSH` | `BB` | `ary_push(R(a),R(a+1)..R(a+b))` | | `OP_ARYDUP` | `B` | `R(a) = ary_dup(R(a))` | | `OP_AREF` | `BBB` | `R(a) = R(b)[c]` | | `OP_ASET` | `BBB` | `R(a)[c] = R(b)` | -- cgit v1.2.3