Open jensjoha opened 2 hours ago
Summary: The user observes that the VM generates complex machine code for a simple list access operation with a bitwise AND. They believe the code could be simplified, potentially leading to performance improvements.
Annotating
SimpleToken.type
with@pragma("vm:never-inline")
so I can easily get the disassembly I can extract this code from an AOT build:which seems massive. Wouldn't something like this do the same thing?
(Helper for at least myself: https://cs.brown.edu/courses/cs033/docs/guides/x64_cheatsheet.pdf)
Maybe someone who actually knows something about the VM and assembly and stuff might come up with something better.
/cc @mraleph