Skip to main content
@tevm/voltaire
@tevm/voltaire / evm / Control

Control

Functions

handler_0x00_STOP()

handler_0x00_STOP(frame): EvmError | null
Defined in: src/evm/control/0x00_STOP.js:7 STOP opcode (0x00) - Halt execution

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0x56_JUMP()

handler_0x56_JUMP(frame): EvmError | null
Defined in: src/evm/control/0x56_JUMP.js:12 JUMP opcode (0x56) - Unconditional jump

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0x57_JUMPI()

handler_0x57_JUMPI(frame): EvmError | null
Defined in: src/evm/control/0x57_JUMPI.js:12 JUMPI opcode (0x57) - Conditional jump

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0x58_PC()

handler_0x58_PC(frame): EvmError | null
Defined in: src/evm/control/0x58_PC.js:11 PC opcode (0x58) - Get program counter

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0x5b_JUMPDEST()

handler_0x5b_JUMPDEST(frame): EvmError | null
Defined in: src/evm/control/0x5b_JUMPDEST.js:10 JUMPDEST opcode (0x5b) - Jump destination marker (no-op)

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0xf3_RETURN()

handler_0xf3_RETURN(frame): EvmError | null
Defined in: src/evm/control/0xf3_RETURN.js:31 RETURN opcode (0xf3) - Halt execution and return output data

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails

handler_0xfd_REVERT()

handler_0xfd_REVERT(frame): EvmError | null
Defined in: src/evm/control/0xfd_REVERT.js:34 REVERT opcode (0xfd) - Halt execution and revert state changes Note: REVERT was introduced in Byzantium hardfork (EIP-140). Hardfork validation should be handled by the EVM executor.

Parameters

frame
BrandedFrame Frame instance

Returns

EvmError | null Error if operation fails