You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugc: add debug contexts to all unmapped bytecodes (#190)
* bugc: add debug contexts to all remaining unmapped bytecodes
Thread remark/code contexts through all compiler-generated
instructions that previously lacked debug info:
- Free memory pointer initialization (remark)
- Return value spill after call continuation (call expr source range)
- STOP guard between main and user functions (remark)
- Function prologue MSTORE for param storage (thread existing remark)
- Function prologue return PC save sequence (thread existing remark)
- Deployment wrapper CODECOPY+RETURN (remark)
All 82 instructions across runtime and create programs now
carry debug contexts (previously 22 were unmapped).
* bugc: add code contexts with source ranges to compiler-generated instructions
Add source location info (loc, sourceId) to Ir.Function so EVM
codegen can build code contexts for compiler-generated instructions.
Instructions that map to a source location now use gather contexts
combining both a remark (for debugger tooling) and a code context
(for source highlighting):
- Free memory pointer init → code block / create block range
- Function prologue (param stores, return PC save) → function decl range
- STOP guard → code block range
Deployment wrapper remains remark-only (no corresponding source).
Return value spill already had correct source mapping (call expr).
0 commit comments