Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Sort bytecode opcodes into groups based on their format #5099
This PR is a set of related commits to reorganise the VM opcodes to simplify their encoding/decoding. Up until now opcodes have just been "randomly" assigned, and there's a large table in
This PR makes the following changes:
The main aim with these changes is to improve readability of the opcode encoding as well as future maintainability (removing the big format table is the main thing, because that has had some bugs in the past).
The only real disadvantage of this change is that 3rd-party tools that rely on the opcodes being what they are will need to be updated (and maybe even simplified due to opcodes now having meaning). Also the MPY version needs to be updated.
Code size changes with this PR are: