Expand description
Code generation library for zink.
Modules§
- asm π
- Low level assembler implementation for EVM.
- backtrace π
- Backtrace support for the code generation.
- codegen π
- Code generators
- control π
- Data structures for control flow emission.
- jump π
- Jump table implementation.
- local π
- WASM local slot.
- masm π
- MacroAssembler used by the code generation.
- result π
- Codegen results
- validator π
- Pre-visitor for parsing WASM.
- visitor π
- This module is the central place for machine code emission.
- wasm
- WASM related primitives.
Structs§
- Assembler
- Low level assembler implementation for EVM.
- Code
- Code section for EVM.
- Constructor
- Contract constructor.
- Control
Stack - The control stack.
- Control
Stack Frame - Holds the necessary metadata to support the smission of control flow instructions.
- Dispatcher
- Code generator for EVM dispatcher.
- Function
- The code generation abstraction.
- Jump
Table - Jump table implementation.
- Local
Slot - A local slot.
- Locals
- Solidityβs implementation uses 16 slots for locals. ref: https://docs.soliditylang.org/en/v0.8.20/internals/optimizer.html#stackcompressor
- Macro
Assembler - EVM MacroAssembler.
Enums§
- Control
Stack Frame Type - The type of the control stack frame.
- Error
- Codegen error
Constants§
- BUFFER_
LIMIT - Maximum size of a evm bytecode in bytes.
Type Aliases§
- Buffer
- Code generation buffer.
- Init
Storage - Initial storage of contracts
- Result
- Codegen result