|
|
|
@ -2,14 +2,14 @@ use std::fmt::Debug; |
|
|
|
|
|
|
|
|
|
pub use eval_res::EvalRes; |
|
|
|
|
|
|
|
|
|
use crate::asm::data::literal::Value; |
|
|
|
|
use crate::asm::data::Mask; |
|
|
|
|
use crate::asm::error::Error; |
|
|
|
|
use crate::asm::instr::Op; |
|
|
|
|
use crate::asm::parse::arg_parser::ArgParser; |
|
|
|
|
use crate::runtime::fault::Fault; |
|
|
|
|
use crate::runtime::run_thread::state::RunState; |
|
|
|
|
use crate::runtime::run_thread::ThreadInfo; |
|
|
|
|
use crate::asm::data::literal::Value; |
|
|
|
|
use crate::asm::data::Mask; |
|
|
|
|
|
|
|
|
|
mod eval_res; |
|
|
|
|
|
|
|
|
@ -40,7 +40,7 @@ pub trait CrsnExtension: Debug + Send + Sync + 'static { |
|
|
|
|
fn drop_obj(&self, |
|
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
|
#[allow(unused)] handle : Value) -> Result<Option<()>, Fault> |
|
|
|
|
#[allow(unused)] handle: Value) -> Result<Option<()>, Fault> |
|
|
|
|
{ |
|
|
|
|
// Default impl - we do not support dropping this object
|
|
|
|
|
Ok(None) |
|
|
|
@ -50,8 +50,8 @@ pub trait CrsnExtension: Debug + Send + Sync + 'static { |
|
|
|
|
fn read_obj(&self, |
|
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
|
#[allow(unused)] handle : Value, |
|
|
|
|
#[allow(unused)] mask : Mask |
|
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
|
#[allow(unused)] mask: Mask, |
|
|
|
|
) -> Result<Option<Value>, Fault> { |
|
|
|
|
// Default impl - we do not support reading this object
|
|
|
|
|
Ok(None) |
|
|
|
@ -61,8 +61,8 @@ pub trait CrsnExtension: Debug + Send + Sync + 'static { |
|
|
|
|
fn write_obj(&self, |
|
|
|
|
#[allow(unused)] ti: &ThreadInfo, |
|
|
|
|
#[allow(unused)] state: &mut RunState, |
|
|
|
|
#[allow(unused)] handle : Value, |
|
|
|
|
#[allow(unused)] mask : Mask |
|
|
|
|
#[allow(unused)] handle: Value, |
|
|
|
|
#[allow(unused)] mask: Mask, |
|
|
|
|
) -> Result<Option<()>, Fault> { |
|
|
|
|
// Default impl - we do not support writing this object
|
|
|
|
|
Ok(None) |
|
|
|
|