Skip to content

Commit b02f13c

Browse files
committed
---
yaml --- r: 97148 b: refs/heads/dist-snap c: 21e4e41 h: refs/heads/master v: v3
1 parent 8758599 commit b02f13c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: c010d08cd517119b870476ba7b37ab52b075385d
9+
refs/heads/dist-snap: 21e4e410a955014cca789550c2e2ee091fe67a96
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,8 @@ pub fn trans_closure(ccx: @CrateContext,
19141914
_attributes: &[ast::Attribute],
19151915
output_type: ty::t,
19161916
maybe_load_env: |@FunctionContext|) {
1917-
ccx.stats.n_closures += 1;
1917+
ccx.stats.n_closures.set(ccx.stats.n_closures.get() + 1);
1918+
19181919
let _icx = push_ctxt("trans_closure");
19191920
set_uwtable(llfndecl);
19201921

@@ -3253,7 +3254,7 @@ pub fn trans_crate(sess: session::Session,
32533254
println!("n_fns: {}", ccx.stats.n_fns.get());
32543255
println!("n_monos: {}", ccx.stats.n_monos.get());
32553256
println!("n_inlines: {}", ccx.stats.n_inlines.get());
3256-
println!("n_closures: {}", ccx.stats.n_closures);
3257+
println!("n_closures: {}", ccx.stats.n_closures.get());
32573258
println("fn stats:");
32583259

32593260
ccx.stats.fn_stats.sort_by(|&(_, _, insns_a), &(_, _, insns_b)| insns_b.cmp(&insns_a));

branches/dist-snap/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct Stats {
133133
n_fns: Cell<uint>,
134134
n_monos: Cell<uint>,
135135
n_inlines: Cell<uint>,
136-
n_closures: uint,
136+
n_closures: Cell<uint>,
137137
n_llvm_insns: uint,
138138
llvm_insn_ctxt: ~[~str],
139139
llvm_insns: HashMap<~str, uint>,

branches/dist-snap/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl CrateContext {
218218
n_fns: Cell::new(0u),
219219
n_monos: Cell::new(0u),
220220
n_inlines: Cell::new(0u),
221-
n_closures: 0u,
221+
n_closures: Cell::new(0u),
222222
n_llvm_insns: 0u,
223223
llvm_insn_ctxt: ~[],
224224
llvm_insns: HashMap::new(),

0 commit comments

Comments
 (0)