vm: add ABORTMSG and ASSERTMSG opcodes

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2023-07-20 11:25:00 +03:00
parent 2493400525
commit e7f77e052f
5 changed files with 22 additions and 1 deletions

View file

@ -70,6 +70,8 @@ var coefficients = [256]uint16{
opcode.CALLT: 1 << 15,
opcode.ABORT: 0,
opcode.ASSERT: 1 << 0,
opcode.ABORTMSG: 0, // TODO
opcode.ASSERTMSG: 1 << 0, // TODO
opcode.THROW: 1 << 9,
opcode.TRY: 1 << 2,
opcode.TRYL: 1 << 2,