costa-group / gasol-optimizer

GNU General Public License v3.0
107 stars 9 forks source link

Update parser_asm #23

Closed alexcere closed 1 year ago

alexcere commented 2 years ago

A contract in parser_asm used to have two fields: code and data. However, version 0.8.14 added a third field: sourceList. This field does not contain any code, so we just need to store it and include it again when generating the optimized asm code.

Besides, jump types of operations are now stored in the new field jumpType, so we need to include it in the asm_bytecode representation.