add CodeBag.java stub
authoradam <adam@megacz.com>
Sat, 13 Dec 2008 04:27:21 +0000 (05:27 +0100)
committeradam <adam@megacz.com>
Sat, 13 Dec 2008 04:27:21 +0000 (05:27 +0100)
src/edu/berkeley/fleet/ir/CodeBag.java [new file with mode: 0644]

diff --git a/src/edu/berkeley/fleet/ir/CodeBag.java b/src/edu/berkeley/fleet/ir/CodeBag.java
new file mode 100644 (file)
index 0000000..1b4d06f
--- /dev/null
@@ -0,0 +1,39 @@
+package edu.berkeley.fleet.ir;
+import java.util.*;
+import java.net.*;
+import edu.berkeley.fleet.two.*;
+import edu.berkeley.fleet.api.*;
+import edu.berkeley.fleet.api.Instruction.*;
+import edu.berkeley.fleet.api.Instruction.Set;
+import edu.berkeley.fleet.api.Instruction.Set.*;
+import static edu.berkeley.fleet.util.BitManipulations.*;
+
+/**
+ *  A CodeBag represents the instructions of a Context along with
+ *  (compile-time) knowledge of where it resides
+ */
+public class CodeBag {
+
+    /*
+
+                         SF         works       works @diff    ok for non   size    ships
+Dispatch Method       Crossings     @inbox?       docks?       tail call?   limit   consumed
+------------------------------------------------------------------------------------------
+
+Inline                    0           Y              N             N        Small  None
+
+Inline literals           1           N              Y             Y        Tiny   None
+ w/ "dispatch"
+
+Send CBD to               2+          N              Y             Y        None   None (mem ship)
+memory ship
+
+Send token to             3+          Y              Y             Y        None   One Output Dock
+assistant outbox first
+
+Release from FIFO         2           Y              Y             Y        Med    1x FIFO, but can be shared
+
+
+     */
+
+}