public class LIRGenerationResultBase extends Object implements LIRGenerationResult
| Modifier and Type | Field and Description |
|---|---|
private String |
compilationUnitName
Human readable name of this compilation unit.
|
private FrameMap |
frameMap |
private FrameMapBuilder |
frameMapBuilder |
private boolean |
hasForeignCall
Records whether the code being generated makes at least one foreign call.
|
private LIR |
lir |
| Constructor and Description |
|---|
LIRGenerationResultBase(String compilationUnitName,
LIR lir,
FrameMapBuilder frameMapBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildFrameMap(StackSlotAllocator allocator)
Creates a
FrameMap out of the FrameMapBuilder. |
String |
getCompilationUnitName() |
FrameMap |
getFrameMap()
Returns the
FrameMap associated with this LIRGenerationResult. |
FrameMapBuilder |
getFrameMapBuilder()
Returns the
FrameMapBuilder for collecting the information to build a
FrameMap. |
LIR |
getLIR() |
boolean |
hasForeignCall()
Determines whether the code being generated makes at least one foreign call.
|
void |
setForeignCall(boolean hasForeignCall) |
private final FrameMapBuilder frameMapBuilder
private boolean hasForeignCall
private final String compilationUnitName
public LIRGenerationResultBase(String compilationUnitName, LIR lir, FrameMapBuilder frameMapBuilder)
public LIR getLIR()
getLIR in interface LIRGenerationResultpublic boolean hasForeignCall()
hasForeignCall in interface LIRGenerationResultpublic final void setForeignCall(boolean hasForeignCall)
setForeignCall in interface LIRGenerationResultpublic final FrameMapBuilder getFrameMapBuilder()
LIRGenerationResultFrameMapBuilder for collecting the information to build a
FrameMap.
This method can only be used prior calling LIRGenerationResult.buildFrameMap(com.oracle.graal.lir.stackslotalloc.StackSlotAllocator).getFrameMapBuilder in interface LIRGenerationResultpublic void buildFrameMap(StackSlotAllocator allocator)
LIRGenerationResultFrameMap out of the FrameMapBuilder. This method should only be
called once. After calling it, LIRGenerationResult.getFrameMapBuilder() can no longer be used.public FrameMap getFrameMap()
LIRGenerationResultFrameMap associated with this LIRGenerationResult.
This method can only be called after LIRGenerationResult.buildFrameMap(com.oracle.graal.lir.stackslotalloc.StackSlotAllocator).getFrameMap in interface LIRGenerationResultpublic String getCompilationUnitName()
getCompilationUnitName in interface LIRGenerationResult