|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.ssa.RegisterMapper
com.android.dx.ssa.BasicRegisterMapper
public class BasicRegisterMapper
This class maps one register space into another, with each mapping built up individually and added via addMapping()
| Constructor Summary | |
|---|---|
BasicRegisterMapper(int countOldRegisters)
Creates a new OneToOneRegisterMapper. |
|
| Method Summary | |
|---|---|
void |
addMapping(int oldReg,
int newReg,
int category)
Adds a mapping to the mapper. |
int |
getNewRegisterCount()
Gets the count of registers (really, the total register width, since category width is counted) in the new namespace. |
RegisterSpec |
map(RegisterSpec registerSpec)
|
int |
oldToNew(int oldReg)
Returns the new-namespace mapping for the specified old-namespace register, or -1 if one exists. |
String |
toHuman()
|
| Methods inherited from class com.android.dx.ssa.RegisterMapper |
|---|
map, map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicRegisterMapper(int countOldRegisters)
countOldRegisters - the number of registers in the old name space| Method Detail |
|---|
public int getNewRegisterCount()
getNewRegisterCount in class RegisterMapperpublic RegisterSpec map(RegisterSpec registerSpec)
map in class RegisterMapperregisterSpec - old register
public int oldToNew(int oldReg)
oldReg - >= 0; old-namespace register
public String toHuman()
public void addMapping(int oldReg,
int newReg,
int category)
oldReg - >= 0; old registernewReg - >= 0; new registercategory - 1..2; width of reg
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||