Trait rustc_trans::trans::cleanup::CleanupMethodsExperimental [-]  [+] [src]

pub trait CleanupMethods<'blk, 'tcx> {
    fn push_ast_cleanup_scope(&self, id: NodeInfo);
    fn push_loop_cleanup_scope(&self, id: NodeId, exits: [Block<'blk, 'tcx>, ..EXIT_MAX]);
    fn push_custom_cleanup_scope(&self) -> CustomScopeIndex;
    fn push_custom_cleanup_scope_with_debug_loc(&self, debug_loc: NodeInfo) -> CustomScopeIndex;
    fn pop_and_trans_ast_cleanup_scope(&self, bcx: Block<'blk, 'tcx>, cleanup_scope: NodeId) -> Block<'blk, 'tcx>;
    fn pop_loop_cleanup_scope(&self, cleanup_scope: NodeId);
    fn pop_custom_cleanup_scope(&self, custom_scope: CustomScopeIndex);
    fn pop_and_trans_custom_cleanup_scope(&self, bcx: Block<'blk, 'tcx>, custom_scope: CustomScopeIndex) -> Block<'blk, 'tcx>;
    fn top_loop_scope(&self) -> NodeId;
    fn normal_exit_block(&'blk self, cleanup_scope: NodeId, exit: uint) -> BasicBlockRef;
    fn return_exit_block(&'blk self) -> BasicBlockRef;
    fn schedule_lifetime_end(&self, cleanup_scope: ScopeId, val: ValueRef);
    fn schedule_drop_mem(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>);
    fn schedule_drop_and_zero_mem(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>);
    fn schedule_drop_immediate(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>);
    fn schedule_free_value(&self, cleanup_scope: ScopeId, val: ValueRef, heap: Heap, content_ty: Ty<'tcx>);
    fn schedule_free_slice(&self, cleanup_scope: ScopeId, val: ValueRef, size: ValueRef, align: ValueRef, heap: Heap);
    fn schedule_clean(&self, cleanup_scope: ScopeId, cleanup: CleanupObj<'tcx>);
    fn schedule_clean_in_ast_scope(&self, cleanup_scope: NodeId, cleanup: CleanupObj<'tcx>);
    fn schedule_clean_in_custom_scope(&self, custom_scope: CustomScopeIndex, cleanup: CleanupObj<'tcx>);
    fn needs_invoke(&self) -> bool;
    fn get_landing_pad(&'blk self) -> BasicBlockRef;
}

Required Methods

fn push_ast_cleanup_scope(&self, id: NodeInfo)

fn push_loop_cleanup_scope(&self, id: NodeId, exits: [Block<'blk, 'tcx>, ..EXIT_MAX])

fn push_custom_cleanup_scope(&self) -> CustomScopeIndex

fn push_custom_cleanup_scope_with_debug_loc(&self, debug_loc: NodeInfo) -> CustomScopeIndex

fn pop_and_trans_ast_cleanup_scope(&self, bcx: Block<'blk, 'tcx>, cleanup_scope: NodeId) -> Block<'blk, 'tcx>

fn pop_loop_cleanup_scope(&self, cleanup_scope: NodeId)

fn pop_custom_cleanup_scope(&self, custom_scope: CustomScopeIndex)

fn pop_and_trans_custom_cleanup_scope(&self, bcx: Block<'blk, 'tcx>, custom_scope: CustomScopeIndex) -> Block<'blk, 'tcx>

fn top_loop_scope(&self) -> NodeId

fn normal_exit_block(&'blk self, cleanup_scope: NodeId, exit: uint) -> BasicBlockRef

fn return_exit_block(&'blk self) -> BasicBlockRef

fn schedule_lifetime_end(&self, cleanup_scope: ScopeId, val: ValueRef)

fn schedule_drop_mem(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>)

fn schedule_drop_and_zero_mem(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>)

fn schedule_drop_immediate(&self, cleanup_scope: ScopeId, val: ValueRef, ty: Ty<'tcx>)

fn schedule_free_value(&self, cleanup_scope: ScopeId, val: ValueRef, heap: Heap, content_ty: Ty<'tcx>)

fn schedule_free_slice(&self, cleanup_scope: ScopeId, val: ValueRef, size: ValueRef, align: ValueRef, heap: Heap)

fn schedule_clean(&self, cleanup_scope: ScopeId, cleanup: CleanupObj<'tcx>)

fn schedule_clean_in_ast_scope(&self, cleanup_scope: NodeId, cleanup: CleanupObj<'tcx>)

fn schedule_clean_in_custom_scope(&self, custom_scope: CustomScopeIndex, cleanup: CleanupObj<'tcx>)

fn needs_invoke(&self) -> bool

fn get_landing_pad(&'blk self) -> BasicBlockRef

Implementors