From ce23623759bba41d2963a82364097bdc402a3b45 Mon Sep 17 00:00:00 2001 From: megacz Date: Sat, 14 Mar 2009 16:53:07 -0700 Subject: [PATCH] reformatting in CodeBag.java --- src/edu/berkeley/fleet/ir/CodeBag.java | 54 +++++++++++++++++--------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/src/edu/berkeley/fleet/ir/CodeBag.java b/src/edu/berkeley/fleet/ir/CodeBag.java index f420d03..ac542b0 100644 --- a/src/edu/berkeley/fleet/ir/CodeBag.java +++ b/src/edu/berkeley/fleet/ir/CodeBag.java @@ -1,40 +1,44 @@ 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) { + + } + } -- 1.7.10.4