public class FallocAddrConst extends java.lang.Object implements Instruction
FALLOC( ADDR , CONST )| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.lang.String |
address
The address to allocate to.
|
protected @NotNull java.lang.String |
constant
The constant to be allocated.
|
protected @Nullable Tree |
tree
The tree this instruction was declared at.
|
| Constructor and Description |
|---|
FallocAddrConst(@NotNull java.lang.String address,
@NotNull java.lang.String constant)
Construct a new instruction that allocates the given
constant to the given
address at the heap of the last frame. |
FallocAddrConst(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull java.lang.String constant)
Construct a new instruction that allocates the given
constant to the given
address at the heap of the last frame. |
| Modifier and Type | Method and Description |
|---|---|
void |
exec(@NotNull Environment environment,
@NotNull Memory memory)
Execute this instruction with the given
environment and memory. |
@Nullable Tree |
getTree()
Return the tree from where this instruction was declared.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create@NotNull protected final @NotNull java.lang.String address
@NotNull protected final @NotNull java.lang.String constant
@Nullable protected final @Nullable Tree tree
public FallocAddrConst(@NotNull
@NotNull java.lang.String address,
@NotNull
@NotNull java.lang.String constant)
constant to the given
address at the heap of the last frame.address - the address to where to allocate.constant - the constant to allocate.java.lang.NullPointerException - if the given address or constant is
null.public FallocAddrConst(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull java.lang.String address,
@NotNull
@NotNull java.lang.String constant)
constant to the given
address at the heap of the last frame.tree - the tree from where this constant was declared.address - the address to where to allocate.constant - the constant to allocate.java.lang.NullPointerException - if the given tree or address or constant is null.public void exec(@NotNull
@NotNull Environment environment,
@NotNull
@NotNull Memory memory)
Instructionenvironment and memory.exec in interface Instructionenvironment - the environment this instruction is executed in.memory - the memory holding the variables for this instruction to depend
on.@Nullable public @Nullable Tree getTree()
InstructiongetTree in interface Instruction