|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Backend.Generic.Frame
harpoon.Backend.MIPS.Frame
public class Frame
Frame contains the machine-dependant
information necessary to compile for the MIPS processor.
| Constructor Summary | |
|---|---|
Frame(HMethod main)
|
|
Frame(HMethod main,
String type)
|
|
| Method Summary | |
|---|---|
Object |
daNum(HCodeElement hce)
|
HCodeFactory |
getCodeFactory(HCodeFactory hcf)
Returns a code factory for machine-specific IR.Assems,
given a code factory for CanonicalTreeCode. |
CodeGen |
getCodeGen()
Returns a MIPS.CodeGen. |
GCInfo |
getGCInfo()
Returns the GCInfo for the backend
associated with this. |
InstrBuilder |
getInstrBuilder()
Returns the appropriate InstrBuilder for this
Frame. |
Linker |
getLinker()
The Linker object to use when compiling for this
Frame. |
LocationFactory |
getLocationFactory()
Returns the appropriate LocationFactory for this
Frame. |
RegFileInfo |
getRegFileInfo()
Returns the appropriate RegFileInfo for this
Frame. |
Runtime |
getRuntime()
Returns the appropriate Generic.Runtime for
this Frame. |
TempBuilder |
getTempBuilder()
Returns the Generic.TempBuilder for the backend
associated with this. |
String |
getType()
|
Set |
getUsedDANum()
|
boolean |
memAccessNoTagCheck(HCodeElement hce)
|
boolean |
pointersAreLong()
Returns false if pointers can be represented in
32 bits, or true otherwise. |
void |
setNoTagCheckMap(Map hm)
|
void |
setUsedDANum(Set hs)
|
| Methods inherited from class harpoon.Backend.Generic.Frame |
|---|
setCallGraph, setClassHierarchy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Frame(HMethod main)
public Frame(HMethod main,
String type)
| Method Detail |
|---|
public String getType()
public Linker getLinker()
FrameLinker object to use when compiling for this
Frame.
getLinker in class Framepublic boolean pointersAreLong()
Framefalse if pointers can be represented in
32 bits, or true otherwise.
pointersAreLong in class Framepublic void setNoTagCheckMap(Map hm)
public void setUsedDANum(Set hs)
public Set getUsedDANum()
public boolean memAccessNoTagCheck(HCodeElement hce)
public Object daNum(HCodeElement hce)
public CodeGen getCodeGen()
MIPS.CodeGen.
Since no state is maintained in the returned
MIPS.CodeGen, the same one is returned on
every call to this method.
getCodeGen in class Framepublic Runtime getRuntime()
FrameGeneric.Runtime for
this Frame.
getRuntime in class Framepublic RegFileInfo getRegFileInfo()
FrameRegFileInfo for this
Frame.
getRegFileInfo in class Framepublic LocationFactory getLocationFactory()
FrameLocationFactory for this
Frame.
getLocationFactory in class Framepublic InstrBuilder getInstrBuilder()
FrameInstrBuilder for this
Frame.
getInstrBuilder in class Framepublic TempBuilder getTempBuilder()
FrameGeneric.TempBuilder for the backend
associated with this.
getTempBuilder in class Framepublic GCInfo getGCInfo()
FrameGCInfo for the backend
associated with this. null
may be returned in some cases. i.e. if precise
garbage collection is not supported.
getGCInfo in class Framepublic HCodeFactory getCodeFactory(HCodeFactory hcf)
FrameIR.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.
getCodeFactory in class Frame
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||