vm: add PACKMAP/PACKSTRUCT, extend UNPACK

See neo-project/neo-vm#443.
This commit is contained in:
Roman Khimov 2021-11-12 14:10:41 +03:00
parent 0a7f8afcea
commit 3e6ce3c221
6 changed files with 145 additions and 50 deletions

View file

@ -180,6 +180,8 @@ var coefficients = [256]uint16{
opcode.MIN: 1 << 3,
opcode.MAX: 1 << 3,
opcode.WITHIN: 1 << 3,
opcode.PACKMAP: 1 << 11,
opcode.PACKSTRUCT: 1 << 11,
opcode.PACK: 1 << 11,
opcode.UNPACK: 1 << 11,
opcode.NEWARRAY0: 1 << 4,