Home
last modified time | relevance | path

Searched refs:MemoryError (Results 1 – 5 of 5) sorted by relevance

/wasmtime-44.0.1/cranelift/interpreter/src/
H A Dstate.rs51 ) -> Result<Address, MemoryError>; in stack_address() argument
59 ) -> Result<DataValue, MemoryError>; in checked_load() argument
67 ) -> Result<(), MemoryError>; in checked_store() argument
74 ) -> Result<Address, MemoryError>; in function_address() argument
81 fn resolve_global_value(&self, gv: GlobalValue) -> Result<DataValue, MemoryError>; in resolve_global_value() argument
118 pub enum MemoryError { enum
H A Daddress.rs35 use crate::state::MemoryError;
55 type Error = MemoryError;
61 _ => Err(MemoryError::InvalidAddressType(ty)), in try_from()
111 ) -> Result<Self, MemoryError> { in from_parts() argument
119 return Err(MemoryError::InvalidEntry { in from_parts()
126 return Err(MemoryError::InvalidOffset { in from_parts()
165 type Error = MemoryError;
183 type Error = MemoryError;
190 return Err(MemoryError::InvalidAddress(value)); in try_from()
213 type Error = MemoryError;
H A Dinterpreter.rs9 use crate::state::{InterpreterFunctionRef, MemoryError, State};
298 ) -> Result<Address, MemoryError> { in stack_address() argument
304 return Err(MemoryError::InvalidOffset { in stack_address()
326 ) -> Result<DataValue, MemoryError> { in checked_load() argument
334 return Err(MemoryError::OutOfBoundsLoad { in checked_load()
348 return Err(MemoryError::MisalignedLoad { addr, load_size }); in checked_load()
362 ) -> Result<(), MemoryError> { in checked_store() argument
370 return Err(MemoryError::OutOfBoundsStore { in checked_store()
384 return Err(MemoryError::MisalignedStore { addr, store_size }); in checked_store()
397 ) -> Result<Address, MemoryError> { in function_address() argument
[all …]
H A Dstep.rs6 use crate::state::{InterpreterFunctionRef, MemoryError, State};
190 let memerror_to_trap = |e: MemoryError| match e { in step()
191 MemoryError::InvalidAddress(_) in step()
192 | MemoryError::InvalidAddressType(_) in step()
193 | MemoryError::InvalidOffset { .. } in step()
195 MemoryError::OutOfBoundsStore { mem_flags, .. } in step()
196 | MemoryError::OutOfBoundsLoad { mem_flags, .. } => CraneliftTrap::User( in step()
201 MemoryError::MisalignedLoad { .. } => CraneliftTrap::HeapMisaligned, in step()
202 MemoryError::MisalignedStore { .. } => CraneliftTrap::HeapMisaligned, in step()
434 .ok_or_else(|| StepError::MemoryError(MemoryError::InvalidAddress(addr_dv)))?; in step()
[all …]
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Ddiff_wasmi.rs53 wasmi::errors::ErrorKind::Memory(wasmi::errors::MemoryError::OutOfBoundsAccess) => { in trap_code()