diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-18 12:29:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-19 09:07:20 +0900 |
| commit | 8bfa99975c8fc9ed171549b0710cab7a395116c5 (patch) | |
| tree | cf503ae6e95eb5730bb3a898f047f11ebef1a1ee /doc/opcode.md | |
| parent | 7c99df8416aa866725c11e5ced7f2c5a818a8c74 (diff) | |
| download | mruby-8bfa99975c8fc9ed171549b0710cab7a395116c5.tar.gz mruby-8bfa99975c8fc9ed171549b0710cab7a395116c5.zip | |
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`
Diffstat (limited to 'doc/opcode.md')
| -rw-r--r-- | doc/opcode.md | 3 |
1 files changed, 1 insertions, 2 deletions
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)` | |
