Skip to main content

JitRuntime

Struct JitRuntime 

Source
pub struct JitRuntime<L>
where L: Fn(&GuestMemory, u64) -> JitResult<Nnil>,
{ /* private fields */ }

Implementations§

Source§

impl<L> JitRuntime<L>
where L: Fn(&GuestMemory, u64) -> JitResult<Nnil>,

Source

pub fn init_runtime( program: ProgramImage, process: RemuConfig, jit_output_dir: PathBuf, lift_region: L, ) -> JitResult<Self>

Source

pub fn snapshot(&mut self) -> JitResult<RuntimeSnapshot>

Source

pub fn restore(&mut self, snapshot: &RuntimeSnapshot) -> JitResult<()>

Source

pub fn reset(&mut self) -> JitResult<()>

Source§

impl<L> JitRuntime<L>
where L: Fn(&GuestMemory, u64) -> JitResult<Nnil>,

Source

pub fn new(program: ProgramImage, lift_region: L) -> JitResult<Self>

Source

pub fn cache_len(&self) -> usize

Source

pub fn program(&self) -> &ProgramImage

Source

pub fn state(&self) -> &GuestState

Source

pub fn state_mut(&mut self) -> &mut GuestState

Source

pub fn memory(&self) -> &GuestMemory

Source

pub fn memory_mut(&mut self) -> &mut GuestMemory

Source

pub fn set_entry_pc(&mut self, pc: u64)

Source

pub fn set_verbose(&mut self, verbose: bool)

Source

pub fn process_config(&self) -> &RemuConfig

Source

pub fn pause_flag(&self) -> Arc<AtomicBool> ⓘ

Source

pub fn add_breakpoint(&mut self, address: u64)

Source

pub fn remove_breakpoint(&mut self, address: u64)

Source

pub fn clear_breakpoints(&mut self)

Source

pub fn breakpoints(&self) -> &[u64]

Source

pub fn trace(&self) -> Vec<u64>

Source

pub fn last_syscall(&self) -> Option<[u64; 8]>

Source

pub fn lift_at(&self, pc: u64) -> JitResult<Nnil>

Source

pub fn precompile(&mut self) -> JitResult<usize>

Source

pub fn run(&mut self) -> JitResult<ExitReason>

Source

pub fn run_for_blocks(&mut self, limit: u64) -> JitResult<ExitReason>

Auto Trait Implementations§

§

impl<L> !Send for JitRuntime<L>

§

impl<L> !Sync for JitRuntime<L>

§

impl<L> Freeze for JitRuntime<L>
where L: Freeze,

§

impl<L> RefUnwindSafe for JitRuntime<L>
where L: RefUnwindSafe,

§

impl<L> Unpin for JitRuntime<L>
where L: Unpin,

§

impl<L> UnsafeUnpin for JitRuntime<L>
where L: UnsafeUnpin,

§

impl<L> UnwindSafe for JitRuntime<L>
where L: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.