A power tool to peek into LuaJIT internals, primarily for educational purposes
Try live at https://luajit.me
- execute arbitrary Lua code and see what happens
- several snippets showcasing interesting quirks of LuaJIT are readily available
- upload and study
jit.dump
output [TBD] - explore bytecode behind the source code in several modes
- Lua — bytecodes are hidden, revealed on click on a source line
- Bytecode — only bytecode is displayed
- Mixed — bytecodes interleaved with Lua source code
- browse generated JIT-compiled traces
- visually examine trace graph
- highligh source code lines and/or bytecodes participating in a trace
- examine trace properties, including general info, IR and the assembly
- Presentation Mode — hit P to reduce visual clutter; suitable for presenting after a moderate zoom