diff --git a/doc/internal/opcode.md b/doc/internal/opcode.md index d93d018d4..e8b642e28 100644 --- a/doc/internal/opcode.md +++ b/doc/internal/opcode.md @@ -73,7 +73,7 @@ sign) of operands. | `OP_SSENDB` | `BBB` | `R(a) = self.send(Syms(b),R(a+1)..,R(a+n+1):R(a+n+2)..,&R(a+n+2k+1))` | | `OP_SEND` | `BBB` | `R(a) = R(a).send(Syms(b),R(a+1)..,R(a+n+1):R(a+n+2)..) (c=n|k<<4)` | | `OP_SENDB` | `BBB` | `R(a) = R(a).send(Syms(b),R(a+1)..,R(a+n+1):R(a+n+2)..,&R(a+n+2k+1))` | -| `OP_CALL` | `-` | `R(0) = self.call(frame.argc, frame.argv)` | +| `OP_CALL` | `-` | `self.call(*, **, &) (But overlay the current call frame; tailcall)` | | `OP_SUPER` | `BB` | `R(a) = super(R(a+1),... ,R(a+b+1))` | | `OP_ARGARY` | `BS` | `R(a) = argument array (16=m5:r1:m5:d1:lv4)` | | `OP_ENTER` | `W` | `arg setup according to flags (23=m5:o5:r1:m5:k5:d1:b1)` | diff --git a/include/mruby/ops.h b/include/mruby/ops.h index b4d71748b..cda796f08 100644 --- a/include/mruby/ops.h +++ b/include/mruby/ops.h @@ -61,7 +61,7 @@ OPCODE(SSEND, BBB) /* R[a] = self.send(Syms[b],R[a+1]..,R[a+n+1]:R[a+n OPCODE(SSENDB, BBB) /* R[a] = self.send(Syms[b],R[a+1]..,R[a+n+1]:R[a+n+2]..,&R[a+n+2k+1]) */ OPCODE(SEND, BBB) /* R[a] = R[a].send(Syms[b],R[a+1]..,R[a+n+1]:R[a+n+2]..) (c=n|k<<4) */ OPCODE(SENDB, BBB) /* R[a] = R[a].send(Syms[b],R[a+1]..,R[a+n+1]:R[a+n+2]..,&R[a+n+2k+1]) */ -OPCODE(CALL, Z) /* R[0] = self.call(frame.argc, frame.argv) */ +OPCODE(CALL, Z) /* self.call(*, **, &) (But overlay the current call frame; tailcall) */ OPCODE(SUPER, BB) /* R[a] = super(R[a+1],... ,R[a+b+1]) */ OPCODE(ARGARY, BS) /* R[a] = argument array (16=m5:r1:m5:d1:lv4) */ OPCODE(ENTER, W) /* arg setup according to flags (23=m5:o5:r1:m5:k5:d1:b1) */