miri::shims::foreign_items

Trait EvalContextExtPriv

Source
trait EvalContextExtPriv<'tcx>: MiriInterpCxExt<'tcx> {
    // Provided methods
    fn check_rustc_alloc_request(
        &self,
        size: u64,
        align: u64,
    ) -> InterpResult<'tcx> { ... }
    fn emulate_foreign_item_inner(
        &mut self,
        link_name: Symbol,
        abi: ExternAbi,
        args: &[OpTy<'tcx>],
        dest: &MPlaceTy<'tcx>,
    ) -> InterpResult<'tcx, EmulateItemResult> { ... }
}

Provided Methods§

Source

fn check_rustc_alloc_request(&self, size: u64, align: u64) -> InterpResult<'tcx>

Check some basic requirements for this allocation request: non-zero size, power-of-two alignment.

Source

fn emulate_foreign_item_inner( &mut self, link_name: Symbol, abi: ExternAbi, args: &[OpTy<'tcx>], dest: &MPlaceTy<'tcx>, ) -> InterpResult<'tcx, EmulateItemResult>

Implementors§

Source§

impl<'tcx> EvalContextExtPriv<'tcx> for MiriInterpCx<'tcx>