pub struct WholeProgramDevirt {
pub vtable_map: HashMap<String, Vec<String>>,
pub call_profiles: Vec<VirtualCallRecord>,
pub min_speculation_threshold: f64,
}Fields§
§vtable_map: HashMap<String, Vec<String>>§call_profiles: Vec<VirtualCallRecord>§min_speculation_threshold: f64Implementations§
Source§impl WholeProgramDevirt
impl WholeProgramDevirt
pub fn new() -> Self
pub fn register_vtable( &mut self, class: impl Into<String>, methods: Vec<String>, )
pub fn add_call_profile(&mut self, profile: VirtualCallRecord)
pub fn speculation_opportunities(&self) -> Vec<(&VirtualCallRecord, &str, f64)>
pub fn class_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for WholeProgramDevirt
impl RefUnwindSafe for WholeProgramDevirt
impl Send for WholeProgramDevirt
impl Sync for WholeProgramDevirt
impl Unpin for WholeProgramDevirt
impl UnsafeUnpin for WholeProgramDevirt
impl UnwindSafe for WholeProgramDevirt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more