File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
branches/try/src/libsyntax Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
- refs/heads/try: ab2e83dd8753833ee572210c20876b0583f6d37e
5
+ refs/heads/try: a2384b65e0eff63675a301ca2e340557de487c8c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ impl Eq for Ident {
70
70
// storage.
71
71
pub type SyntaxContext = uint ;
72
72
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
73
82
pub struct SCTable {
74
83
table : ~[ SyntaxContext_ ] ,
75
84
mark_memo : HashMap < ( SyntaxContext , Mrk ) , SyntaxContext > ,
You can’t perform that action at this time.
0 commit comments