Skip to main content

Crate revmc_runtime

Crate revmc_runtime 

Source
Expand description

§revmc-runtime

Runtime JIT/AOT backend for revmc.

This crate owns the runtime compilation infrastructure: compiled-program lookup, resident-code management, artifact storage, background worker scheduling, AOT preloading, and revm integration wrappers.

It builds on revmc-codegen for compilation and is re-exported by the umbrella revmc crate.

Re-exports§

pub use ::eyre;

Modules§

revm_evm
Generic revm JIT EVM.
runtime
Runtime JIT backend: O(1) compiled-function lookup with background compilation.
simple_revm_evm
Generic revm JIT EVM from revmc-context.
tests__fuzzing
Internal tests and testing utilities. Not public API.

Structs§

CompileTimings
Per-phase timing breakdown from a compilation.
EvmCompiler
EVM bytecode compiler.
Linker
EVM bytecode compiler linker.
Opcode
An opcode and its immediate data. Returned by OpcodesIter.
OpcodeInfo
Opcode information.
OpcodesIter
An iterator that yields opcodes and their immediate data.
OpcodesIterWithPc
A bytecode iterator that yields opcodes and their immediate data, alongside the program counter.

Enums§

EvmCompilerInput
EvmCompiler input.

Constants§

ABI_VERSION
ABI version of compiled artifacts. Bump when the calling convention changes.

Functions§

decode_pair
Decodes an EXCHANGE immediate byte into a pair of stack indices (n, m).
decode_single
Decodes a DUPN/SWAPN immediate byte into a stack index.
encode_pair
Encodes a pair of stack indices into an EXCHANGE immediate byte.
encode_single
Encodes a stack index into a DUPN/SWAPN immediate byte.
format_bytecode
Returns a string representation of the given bytecode.
format_bytecode_to
Formats an EVM bytecode to the given writer.
min_imm_len
Returns the length of the immediate data for the given opcode, or 0 if none.
op_info_map
Returns the static info map for the given SpecId.
parse_asm
Parse EVM assembly from a string into bytecode.
shared_library_path
Returns the path for a platform-native shared library filename.
stack_io
Returns the number of input and output stack elements of the given opcode.