Skip to content

Commit fd7f259

Browse files
committed
---
yaml --- r: 79370 b: refs/heads/try c: a2384b6 h: refs/heads/master v: v3
1 parent 29777c1 commit fd7f259

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5-
refs/heads/try: ab2e83dd8753833ee572210c20876b0583f6d37e
5+
refs/heads/try: a2384b65e0eff63675a301ca2e340557de487c8c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/ast.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ impl Eq for Ident {
7070
// storage.
7171
pub type SyntaxContext = uint;
7272

73+
// the SCTable contains a table of SyntaxContext_'s. It
74+
// represents a flattened tree structure, to avoid having
75+
// managed pointers everywhere (that caused an ICE).
76+
// the mark_memo and rename_memo fields are side-tables
77+
// that ensure that adding the same mark to the same context
78+
// gives you back the same context as before. This shouldn't
79+
// change the semantics--everything here is immutable--but
80+
// it should cut down on memory use *a lot*; applying a mark
81+
// to a tree containing 50 identifiers would otherwise generate
7382
pub struct SCTable {
7483
table : ~[SyntaxContext_],
7584
mark_memo : HashMap<(SyntaxContext,Mrk),SyntaxContext>,

0 commit comments

Comments
 (0)