pub struct TypeFeedback { /* private fields */ }Expand description
Type feedback collection for JIT compilation decisions
Implementations§
Source§impl TypeFeedback
impl TypeFeedback
Sourcepub fn record_binary_op(
&mut self,
site_id: usize,
left: &Value,
right: &Value,
result: &Value,
)
pub fn record_binary_op( &mut self, site_id: usize, left: &Value, right: &Value, result: &Value, )
Record binary operation type feedback
Sourcepub fn record_variable_assignment(&mut self, var_name: &str, new_type: TypeId)
pub fn record_variable_assignment(&mut self, var_name: &str, new_type: TypeId)
Record variable assignment type feedback
Sourcepub fn record_function_call(
&mut self,
site_id: usize,
func_name: &str,
args: &[Value],
result: &Value,
)
pub fn record_function_call( &mut self, site_id: usize, func_name: &str, args: &[Value], result: &Value, )
Record function call type feedback
Sourcepub fn get_specialization_candidates(&self) -> Vec<SpecializationCandidate>
pub fn get_specialization_candidates(&self) -> Vec<SpecializationCandidate>
Get type specialization suggestions for optimization
§Panics
Panics if a variable’s dominant type is None when it should exist
Sourcepub fn get_statistics(&self) -> TypeFeedbackStats
pub fn get_statistics(&self) -> TypeFeedbackStats
Get overall type feedback statistics
Trait Implementations§
Source§impl Clone for TypeFeedback
impl Clone for TypeFeedback
Source§fn clone(&self) -> TypeFeedback
fn clone(&self) -> TypeFeedback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeFeedback
impl Debug for TypeFeedback
Auto Trait Implementations§
impl Freeze for TypeFeedback
impl RefUnwindSafe for TypeFeedback
impl Send for TypeFeedback
impl Sync for TypeFeedback
impl Unpin for TypeFeedback
impl UnwindSafe for TypeFeedback
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