From f542225fe06eb22d91c85af724b2a6f62503b20b Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 3 Nov 2008 11:16:26 +0100 Subject: [PATCH] add Context.startupLoopFactories --- src/edu/berkeley/fleet/ir/Context.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/edu/berkeley/fleet/ir/Context.java b/src/edu/berkeley/fleet/ir/Context.java index d26c0cb..f973e87 100644 --- a/src/edu/berkeley/fleet/ir/Context.java +++ b/src/edu/berkeley/fleet/ir/Context.java @@ -40,7 +40,7 @@ import static edu.berkeley.fleet.util.BitManipulations.*; * - after executing these remaining instructions, the dock's hatch is open */ public class Context { - + private HashMap startupLoopFactories = new HashMap(); private HashSet loopFactories = new HashSet(); public final Fleet fleet; @@ -96,6 +96,8 @@ public class Context { this.count = count; this.friendlyName = friendlyName; Context.this.loopFactories.add(this); + if (Context.this.startupLoopFactories.get(dock) == null) + Context.this.startupLoopFactories.put(dock, this); if (prev != null) { if (prev.getNext() != null) throw new RuntimeException(); prev.setNext(this); -- 1.7.10.4