librustc: De-@mut
n_null_glues
in the stats
This commit is contained in:
parent
26d1394767
commit
75efa0725d
@ -3247,7 +3247,7 @@ pub fn trans_crate(sess: session::Session,
|
||||
println("--- trans stats ---");
|
||||
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs.get());
|
||||
println!("n_glues_created: {}", ccx.stats.n_glues_created.get());
|
||||
println!("n_null_glues: {}", ccx.stats.n_null_glues);
|
||||
println!("n_null_glues: {}", ccx.stats.n_null_glues.get());
|
||||
println!("n_real_glues: {}", ccx.stats.n_real_glues);
|
||||
|
||||
println!("n_fns: {}", ccx.stats.n_fns);
|
||||
|
@ -128,7 +128,7 @@ pub struct tydesc_info {
|
||||
pub struct Stats {
|
||||
n_static_tydescs: Cell<uint>,
|
||||
n_glues_created: Cell<uint>,
|
||||
n_null_glues: uint,
|
||||
n_null_glues: Cell<uint>,
|
||||
n_real_glues: uint,
|
||||
n_fns: uint,
|
||||
n_monos: uint,
|
||||
|
@ -213,7 +213,7 @@ impl CrateContext {
|
||||
stats: @mut Stats {
|
||||
n_static_tydescs: Cell::new(0u),
|
||||
n_glues_created: Cell::new(0u),
|
||||
n_null_glues: 0u,
|
||||
n_null_glues: Cell::new(0u),
|
||||
n_real_glues: 0u,
|
||||
n_fns: 0u,
|
||||
n_monos: 0u,
|
||||
|
@ -708,7 +708,11 @@ pub fn emit_tydescs(ccx: &CrateContext) {
|
||||
// calling it.
|
||||
let take_glue =
|
||||
match ti.take_glue.get() {
|
||||
None => { ccx.stats.n_null_glues += 1u; C_null(glue_fn_ty) }
|
||||
None => {
|
||||
ccx.stats.n_null_glues.set(ccx.stats.n_null_glues.get() +
|
||||
1);
|
||||
C_null(glue_fn_ty)
|
||||
}
|
||||
Some(v) => {
|
||||
unsafe {
|
||||
ccx.stats.n_real_glues += 1u;
|
||||
@ -718,7 +722,11 @@ pub fn emit_tydescs(ccx: &CrateContext) {
|
||||
};
|
||||
let drop_glue =
|
||||
match ti.drop_glue.get() {
|
||||
None => { ccx.stats.n_null_glues += 1u; C_null(glue_fn_ty) }
|
||||
None => {
|
||||
ccx.stats.n_null_glues.set(ccx.stats.n_null_glues.get() +
|
||||
1u);
|
||||
C_null(glue_fn_ty)
|
||||
}
|
||||
Some(v) => {
|
||||
unsafe {
|
||||
ccx.stats.n_real_glues += 1u;
|
||||
@ -728,7 +736,11 @@ pub fn emit_tydescs(ccx: &CrateContext) {
|
||||
};
|
||||
let free_glue =
|
||||
match ti.free_glue.get() {
|
||||
None => { ccx.stats.n_null_glues += 1u; C_null(glue_fn_ty) }
|
||||
None => {
|
||||
ccx.stats.n_null_glues.set(ccx.stats.n_null_glues.get() +
|
||||
1u);
|
||||
C_null(glue_fn_ty)
|
||||
}
|
||||
Some(v) => {
|
||||
unsafe {
|
||||
ccx.stats.n_real_glues += 1u;
|
||||
@ -738,7 +750,11 @@ pub fn emit_tydescs(ccx: &CrateContext) {
|
||||
};
|
||||
let visit_glue =
|
||||
match ti.visit_glue.get() {
|
||||
None => { ccx.stats.n_null_glues += 1u; C_null(glue_fn_ty) }
|
||||
None => {
|
||||
ccx.stats.n_null_glues.set(ccx.stats.n_null_glues.get() +
|
||||
1u);
|
||||
C_null(glue_fn_ty)
|
||||
}
|
||||
Some(v) => {
|
||||
unsafe {
|
||||
ccx.stats.n_real_glues += 1u;
|
||||
|
Loading…
x
Reference in New Issue
Block a user