summaryrefslogtreecommitdiff
path: root/vm0/func.go
diff options
context:
space:
mode:
authorMarc Vertes <marc.vertes@tendermint.com>2023-08-24 09:32:36 +0200
committerGitHub <noreply@github.com>2023-08-24 09:32:36 +0200
commit00cd63b47c0c32be821f80e006ed08ce57020e15 (patch)
treef8952b26e6dd301dfc35df9e0537fb4f92856deb /vm0/func.go
parentc83cdc374f8d50189c2da3460a6db94a4527c1fc (diff)
vm1: improve function calling (#6)
The "Enter" instruction has been removed and the frame pointer is now saved by the "Call" instruction. The "Return" instruction now takes the number of function input parameters as the second operand. It's used to return the output values at the correct place in the caller frame, no matter the number of input parameters. The tests and the code generator have been updated accordingly.
Diffstat (limited to 'vm0/func.go')
0 files changed, 0 insertions, 0 deletions