package edu.berkeley.fleet.ir;
import edu.berkeley.fleet.loops.*;
+import edu.berkeley.fleet.api.*;
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
+ * (compile-time) knowledge of where it resides. Consequently, it is
+ * meaningful to say "give me the sequence of instructions which will
+ * invoke this CodeBag".
*/
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
+ *
+ */
- 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
-
-
+ /**
+ * Given a Context, creates a CodeBag which will live in the
+ * Memory ship memoryShip at the address given by baseAddress.
*/
+ public CodeBag(Context ctx, Ship memoryShip, long baseAddress) {
+
+ }
+
}