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 LIRGenerationResult
public boolean hasForeignCall()
hasForeignCall
in interface LIRGenerationResult
public final void setForeignCall(boolean hasForeignCall)
setForeignCall
in interface LIRGenerationResult
public final FrameMapBuilder getFrameMapBuilder()
LIRGenerationResult
FrameMapBuilder
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 LIRGenerationResult
public void buildFrameMap(StackSlotAllocator allocator)
LIRGenerationResult
FrameMap
out of the FrameMapBuilder
. This method should only be
called once. After calling it, LIRGenerationResult.getFrameMapBuilder()
can no longer be used.public FrameMap getFrameMap()
LIRGenerationResult
FrameMap
associated with this LIRGenerationResult
.
This method can only be called after LIRGenerationResult.buildFrameMap(com.oracle.graal.lir.stackslotalloc.StackSlotAllocator)
.getFrameMap
in interface LIRGenerationResult
public String getCompilationUnitName()
getCompilationUnitName
in interface LIRGenerationResult