|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines how any object that tracks register usage (i.e., which registers are in use and which free) for a compiler should behave.
Method Summary | |
void |
clear()
Marks all registers as unused. |
java.lang.String |
findFree()
Find a free register. |
boolean |
isFree(java.lang.String regName)
Inquire whether a register is free. |
void |
markFree(java.lang.String regName)
Marks a register as free. |
void |
markUsed(java.lang.String regName)
Marks a register as used. |
Method Detail |
public void clear()
public void markUsed(java.lang.String regName)
regName
- the name of the register to mark used.public void markFree(java.lang.String regName)
regName
- the name of the register to make free.public boolean isFree(java.lang.String regName)
regName
- the name of the register.public java.lang.String findFree() throws CompilerException
CompilerException
- if no registers are free.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |