harpoon.Analysis.ContBuilder
Class ContBuilder

java.lang.Object
  extended by harpoon.Analysis.ContBuilder.ContBuilder

public class ContBuilder
extends Object

ContBuilder builds continuations for a given CALL using the CALL's HCode, storing the Code for the continuation in the CachingCodeFactory. The generated Code is in quad-no-ssa form.

Version:
$Id: ContBuilder.java,v 1.2 2002/02/25 20:56:16 cananian Exp $
Author:
Karen K. Zee <kkz@alum.mit.edu>

Field Summary
protected  CALL c
           
protected  HClass env
           
protected  HCode hc
           
protected  Temp[] live
           
protected  CachingCodeFactory ucf
           
 
Constructor Summary
ContBuilder(CachingCodeFactory ucf, HCode hc, CALL c, HClass env, Temp[] live)
          Creates a ContBuilder for the designated CALL, given the HCode from which it came.
 
Method Summary
static String getPrefix(HClass t)
          Builds the continuation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ucf

protected final CachingCodeFactory ucf

hc

protected final HCode hc

c

protected final CALL c

env

protected final HClass env

live

protected final Temp[] live
Constructor Detail

ContBuilder

public ContBuilder(CachingCodeFactory ucf,
                   HCode hc,
                   CALL c,
                   HClass env,
                   Temp[] live)
Creates a ContBuilder for the designated CALL, given the HCode from which it came. Requires that the HCode be quad-no-ssa.

Method Detail

getPrefix

public static String getPrefix(HClass t)
Builds the continuation. Returns the HClass.

Returns:
the continuation HClass