interpret: use trace to reduce noice

This commit is contained in:
Lzu Tao 2024-06-13 08:15:00 +00:00
parent 62a287528a
commit 7002a3f37f

View File

@ -441,7 +441,7 @@ where
/// Take an operand, representing a pointer, and dereference it to a place. /// Take an operand, representing a pointer, and dereference it to a place.
/// Corresponds to the `*` operator in Rust. /// Corresponds to the `*` operator in Rust.
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
pub fn deref_pointer( pub fn deref_pointer(
&self, &self,
src: &impl Readable<'tcx, M::Provenance>, src: &impl Readable<'tcx, M::Provenance>,
@ -533,7 +533,7 @@ where
/// Computes a place. You should only use this if you intend to write into this /// Computes a place. You should only use this if you intend to write into this
/// place; for reading, a more efficient alternative is `eval_place_to_op`. /// place; for reading, a more efficient alternative is `eval_place_to_op`.
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
pub fn eval_place( pub fn eval_place(
&self, &self,
mir_place: mir::Place<'tcx>, mir_place: mir::Place<'tcx>,
@ -570,7 +570,7 @@ where
/// Write an immediate to a place /// Write an immediate to a place
#[inline(always)] #[inline(always)]
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
pub fn write_immediate( pub fn write_immediate(
&mut self, &mut self,
src: Immediate<M::Provenance>, src: Immediate<M::Provenance>,
@ -808,7 +808,7 @@ where
/// Copies the data from an operand to a place. /// Copies the data from an operand to a place.
/// `allow_transmute` indicates whether the layouts may disagree. /// `allow_transmute` indicates whether the layouts may disagree.
#[inline(always)] #[inline(always)]
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
fn copy_op_inner( fn copy_op_inner(
&mut self, &mut self,
src: &impl Readable<'tcx, M::Provenance>, src: &impl Readable<'tcx, M::Provenance>,
@ -837,7 +837,7 @@ where
/// `allow_transmute` indicates whether the layouts may disagree. /// `allow_transmute` indicates whether the layouts may disagree.
/// Also, if you use this you are responsible for validating that things get copied at the /// Also, if you use this you are responsible for validating that things get copied at the
/// right type. /// right type.
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
fn copy_op_no_validate( fn copy_op_no_validate(
&mut self, &mut self,
src: &impl Readable<'tcx, M::Provenance>, src: &impl Readable<'tcx, M::Provenance>,
@ -914,7 +914,7 @@ where
/// If the place currently refers to a local that doesn't yet have a matching allocation, /// If the place currently refers to a local that doesn't yet have a matching allocation,
/// create such an allocation. /// create such an allocation.
/// This is essentially `force_to_memplace`. /// This is essentially `force_to_memplace`.
#[instrument(skip(self), level = "debug")] #[instrument(skip(self), level = "trace")]
pub fn force_allocation( pub fn force_allocation(
&mut self, &mut self,
place: &PlaceTy<'tcx, M::Provenance>, place: &PlaceTy<'tcx, M::Provenance>,