public class RegisterAllocator
extends java.lang.Object
Constructor and Description |
---|
RegisterAllocator() |
Modifier and Type | Method and Description |
---|---|
Register |
asImmediate(Value v,
soot.toDex.ConstantVisitor constantV) |
Register |
asLocal(Local local) |
void |
asParameter(SootMethod sm,
Local l) |
Register |
asTmpReg(Type regType) |
java.util.Map<Local,java.lang.Integer> |
getLocalToRegisterMapping() |
int |
getParamRegCount() |
int |
getRegCount() |
void |
increaseRegCount(int amount) |
void |
lockRegister(Register reg)
Locks the given register.
|
void |
resetImmediateConstantsPool() |
public void resetImmediateConstantsPool()
public java.util.Map<Local,java.lang.Integer> getLocalToRegisterMapping()
public void asParameter(SootMethod sm, Local l)
public void increaseRegCount(int amount)
public int getParamRegCount()
public int getRegCount()
public void lockRegister(Register reg)
reg
- The register to lock