Simple JIT compiler to create a fixed-size page translation cache. Generates simple linear search code without branches. On small tables it costs about 16 cycles including the overhead of looping and calling from Lua.
Cache table layout:
struct tlb_entry { int64_t page, offset; }
JIT compiler source: