-1454bbd4fdac9b7272b93fe82860613dccc0afad
+21867225a74d3b07c2b65e32c67f45197db36896
access.uninit_ptr.offset.bytes(),
access.uninit_ptr.offset.bytes() + access.uninit_size.bytes(),
);
- ecx.memory.dump_alloc(access.uninit_ptr.alloc_id);
- eprintln!();
+ eprintln!("{:?}", ecx.memory.dump_alloc(access.uninit_ptr.alloc_id));
}
_ => {}
}
use std::{convert::{TryInto, TryFrom}, iter};
+use log::trace;
+
use rustc_hir::def_id::DefId;
use rustc_middle::{mir, ty};
use rustc_target::abi::{Align, Size};
// Third: functions that return.
if this.emulate_foreign_item_by_name(link_name, args, dest, ret)? {
- this.dump_place(*dest);
+ trace!("{:?}", this.dump_place(*dest));
this.go_to_block(ret);
}
use std::iter;
+use log::trace;
+
use rustc_attr as attr;
use rustc_ast::ast::FloatTy;
use rustc_middle::{mir, ty};
}
}
- "min_align_of_val" => {
- let &[mplace] = check_arg_count(args)?;
- let mplace = this.deref_operand(mplace)?;
- let (_, align) = this
- .size_and_align_of_mplace(mplace)?
- .expect("size_of_val called on extern type");
- this.write_scalar(Scalar::from_machine_usize(align.bytes(), this), dest)?;
- }
-
- "size_of_val" => {
- let &[mplace] = check_arg_count(args)?;
- let mplace = this.deref_operand(mplace)?;
- let (size, _) = this
- .size_and_align_of_mplace(mplace)?
- .expect("size_of_val called on extern type");
- this.write_scalar(Scalar::from_machine_usize(size.bytes(), this), dest)?;
- }
-
// Other
"assume" => {
let &[cond] = check_arg_count(args)?;
name => throw_unsup_format!("unimplemented intrinsic: {}", name),
}
- this.dump_place(*dest);
+ trace!("{:?}", this.dump_place(*dest));
this.go_to_block(ret);
Ok(())
}
use rustc_middle::mir;
+use log::trace;
+
use crate::*;
use helpers::check_arg_count;
}
}
- this.dump_place(*dest);
+ trace!("{:?}", this.dump_place(*dest));
this.go_to_block(ret);
Ok(())
}
use rustc_middle::mir;
+use log::trace;
+
use crate::*;
use helpers::check_arg_count;
use shims::windows::sync::EvalContextExt as _;
}
}
- this.dump_place(*dest);
+ trace!("{:?}", this.dump_place(*dest));
this.go_to_block(ret);
Ok(())
}