Skip to main content

Module bytecode

Module bytecode 

Source
Expand description

Internal EVM bytecode and opcode representation.

Re-exportsยง

pub use asm::parse_asm;
pub use info::*;
pub use opcode::*;

Modulesยง

asm ๐Ÿ”’
EVM bytecode assembler.
fmt ๐Ÿ”’
info ๐Ÿ”’
interner ๐Ÿ”’
opcode ๐Ÿ”’
passes ๐Ÿ”’
Analysis and optimization passes over EVM bytecode.

Macrosยง

impl_index_display ๐Ÿ”’
Implements Display for a nonmax index type using a format string.

Structsยง

AnalysisConfig ๐Ÿ”’
Controls which analysis passes run during [Bytecode::analyze].
GasParams ๐Ÿ”’
Gas table for dynamic gas constants.
Inst ๐Ÿ”’
An EVM instruction index into [Bytecode] instructions.
InstData ๐Ÿ”’
A single instruction in the bytecode.
InstFlags ๐Ÿ”’
[InstrData] flags.
IrStats ๐Ÿ”’
Summary IR statistics for a compiled bytecode.
U256Idx ๐Ÿ”’
Index into the deduplicated U256 constant pool.
U256Imm ๐Ÿ”’
Compact handle to a U256 constant.

Constantsยง

DEFAULT_COMPILER_GAS_LIMIT ๐Ÿ”’
Default compiler gas limit for compile-time evaluation (100k gas).
TEST_SUSPEND ๐Ÿ”’ __fuzzing
Noop opcode used to test suspend-resume.

Functionsยง

bitvec_as_bytes ๐Ÿ”’
slice_as_bytes ๐Ÿ”’

Type Aliasesยง

U256Interner ๐Ÿ”’
Type alias for the bytecode-level U256 constant interner.