MCPcopy Create free account

hub / github.com/PraneshASP/smol-evm-rs / functions

Functions36 in github.com/PraneshASP/smol-evm-rs

↓ 76 callersMethodpush
(&mut self, item: usize)
src/stack.rs:23
↓ 33 callersMethodread_code
Returns the next num_bytes from the code buffer as an integer and advances pc by num_bytes.
src/execution_context.rs:40
↓ 25 callersMethodpop
(&mut self)
src/stack.rs:36
↓ 18 callersMethodswap
(&mut self, index: usize)
src/stack.rs:50
↓ 16 callersMethodpeek
(&mut self, index: usize)
src/stack.rs:43
↓ 11 callersMethodstore
(&mut self, offset: usize, value: usize)
src/memory.rs:21
↓ 4 callersMethodexpand_if_needed
(&mut self, offset: usize)
src/memory.rs:80
↓ 3 callersMethodactive_words
(&self)
src/memory.rs:73
↓ 2 callersMethodload
(&mut self, offset: usize)
src/memory.rs:31
↓ 2 callersMethodread_word
TODO: Change to handle U256
src/calldata.rs:20
↓ 2 callersMethodset_pc
(&mut self, pc: usize)
src/execution_context.rs:57
↓ 1 callersMethodexecute
(&self, context: &mut ExecutionContext)
src/opcodes.rs:227
↓ 1 callersMethodload_range
(&mut self, offset: usize, length: usize)
src/memory.rs:39
↓ 1 callersMethodread_byte
(&self, offset: usize)
src/calldata.rs:12
↓ 1 callersMethodset_returndata
(&mut self, offset: usize, length: usize)
src/execution_context.rs:52
↓ 1 callersMethodstop
(&mut self)
src/execution_context.rs:35
Methoddecode_opcode
( context: &mut ExecutionContext, )
src/instruction.rs:46
Functionload_from_memory
()
src/memory.rs:146
Functionmain
()
src/main.rs:8
Methodnew
(code: Bytes)
src/execution_context.rs:22
Methodnew
(max_depth: usize)
src/stack.rs:16
Methodnew
()
src/memory.rs:17
Methodnew
(data: Bytes)
src/calldata.rs:8
Functionnew_memory_is_empty
()
src/memory.rs:98
Functionnew_stack_is_empty
()
src/stack.rs:71
Functionpush_and_pop_on_stack
()
src/stack.rs:77
Methodregister_instruction
(opcode: usize, name: String, executor: Box<dyn OpcodeExecutor>)
src/instruction.rs:30
Methodregister_instructions
()
src/opcodes.rs:105
Functionstore_in_memory
()
src/memory.rs:104
Methodstore_word
(&mut self, offset: usize, value: usize)
src/memory.rs:65
Functiontest_active_words
()
src/memory.rs:123
Functiontest_peek
()
src/stack.rs:86
Functiontest_read_byte
()
src/calldata.rs:35
Functiontest_read_word
()
src/calldata.rs:52
Functiontest_swap
()
src/stack.rs:100
Methodvalid_jump_destinations
(code: Bytes)
src/execution_context.rs:61