|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Backend.Generic.Frame
public abstract class Frame
A Frame encapsulates the machine-dependent information
needed for compilation. Frames are not intended to be
entirely machine-specific; all machines with roughly the same
datatypes (for example, 32-bit words) and which use the same runtime
implementation should be able to share most, if not all, of a
Frame implementation.
harpoon.IR.Assem,
Serialized Form| Constructor Summary | |
|---|---|
Frame()
|
|
| Method Summary | |
|---|---|
abstract HCodeFactory |
getCodeFactory(HCodeFactory hcf)
Returns a code factory for machine-specific IR.Assems,
given a code factory for CanonicalTreeCode. |
abstract CodeGen |
getCodeGen()
Returns the Generic.CodeGen for the backend
associated with this. |
abstract GCInfo |
getGCInfo()
Returns the GCInfo for the backend
associated with this. |
abstract InstrBuilder |
getInstrBuilder()
Returns the appropriate InstrBuilder for this
Frame. |
abstract Linker |
getLinker()
The Linker object to use when compiling for this
Frame. |
abstract LocationFactory |
getLocationFactory()
Returns the appropriate LocationFactory for this
Frame. |
abstract RegFileInfo |
getRegFileInfo()
Returns the appropriate RegFileInfo for this
Frame. |
abstract Runtime |
getRuntime()
Returns the appropriate Generic.Runtime for
this Frame. |
abstract TempBuilder |
getTempBuilder()
Returns the Generic.TempBuilder for the backend
associated with this. |
abstract boolean |
pointersAreLong()
Returns false if pointers can be represented in
32 bits, or true otherwise. |
void |
setCallGraph(CallGraph cg)
Sets the CallGraph to use for this
Generic.Frame. |
void |
setClassHierarchy(ClassHierarchy ch)
Sets the ClassHierarchy to use for this
Generic.Frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Frame()
| Method Detail |
|---|
public abstract Linker getLinker()
Linker object to use when compiling for this
Frame.
public abstract boolean pointersAreLong()
false if pointers can be represented in
32 bits, or true otherwise.
public abstract Runtime getRuntime()
Generic.Runtime for
this Frame.
public abstract InstrBuilder getInstrBuilder()
InstrBuilder for this
Frame.
public abstract RegFileInfo getRegFileInfo()
RegFileInfo for this
Frame.
public abstract LocationFactory getLocationFactory()
LocationFactory for this
Frame.
public abstract CodeGen getCodeGen()
Generic.CodeGen for the backend
associated with this.
public abstract HCodeFactory getCodeFactory(HCodeFactory hcf)
IR.Assems,
given a code factory for CanonicalTreeCode. Uses
the code generator defined by this frame. Returns null
if this frame does not have a code factory that generates
IR.Assem.Instrs.
public abstract TempBuilder getTempBuilder()
Generic.TempBuilder for the backend
associated with this.
public abstract GCInfo getGCInfo()
GCInfo for the backend
associated with this. null
may be returned in some cases. i.e. if precise
garbage collection is not supported.
public void setClassHierarchy(ClassHierarchy ch)
ClassHierarchy to use for this
Generic.Frame. See Generic.Runtime
for more details on when this needs to be called.
public void setCallGraph(CallGraph cg)
CallGraph to use for this
Generic.Frame. See Generic.Runtime
for more details on when/if this needs to be called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||