X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FGSS.java;h=a4f3d6a8688048fce734ad50b9815b820117cd72;hp=3c1174eb697df0ddd3aa5160b8435021112b6700;hb=e4f373b56b1cdc2c086c0b86e5ec45bad784df0e;hpb=e6144fba714756c987f2e7c99b9cca4cd54f7583 diff --git a/src/edu/berkeley/sbp/GSS.java b/src/edu/berkeley/sbp/GSS.java index 3c1174e..a4f3d6a 100644 --- a/src/edu/berkeley/sbp/GSS.java +++ b/src/edu/berkeley/sbp/GSS.java @@ -122,7 +122,6 @@ class GSS { for(int i=0; i cache = null; - - /** the set of nodes to which there is an edge starting at this node */ - //public final FastSet parents = new FastSet(); /* ALLOC */ - /** what state this node is in */ public final Parser.Table.State state; /** which Phase this Node belongs to (node that Node is also a non-static inner class of Phase) */ public Phase phase() { return Phase.this; } - public HashMap cache() { - return cache==null ? (cache = new HashMap()) : cache; - } public Forest.Ref holder() { return holder==null ? (holder = new Forest.Ref()) : holder; } public Forest pending() { return Phase.this.closed ? holder().resolve() : holder; } public FastSet parents() { return this; } - /** FIXME */ public void queueReductions() { if (allqueued) return; allqueued = true; int where = parents().size(); - for(Parser.Table.Reduction r : token==null ? state.getEofReductions() : state.getReductions(token)) + for(Parser.Table.Reduction r : state.getReductions(token)) if (r.numPop >= 1) r.reduce(this, null, null); - for(int i=0; i 0) + r.reduce(this, n2); } - /** FIXME */ public void queueEmptyReductions() { if (reducing) for(Parser.Table.Reduction r : token==null ? state.getEofReductions() : state.getReductions(token))