hunter / vm

A virtual register machine for akuma

commit f1e7ba3dbdcbb9909cf0c13d12adb952b06d4f56

author Hunter Praska

time 2018-09-11 18:48:32 -05:00

Change instruction constants to an enum

I did this to make the match in run better. As it was, it was easy to
forget to implement an instruction because of the catchall. From a user
perspective this doesn't change anything.

I forgot to mention that the last commit decreased performance
significantly, I think it made it twice as slow. I didn't have existing
benchmarks for it to check against though. This commit gave a slight
performance increase of 1-9%.

A virtual register machine for Akuma