Package com.android.dx.ssa
Class RegisterMapper
java.lang.Object
com.android.dx.ssa.RegisterMapper
- Direct Known Subclasses:
BasicRegisterMapper
Represents a mapping between two register numbering schemes.
Subclasses of this may be mutable, and as such the mapping provided
is only valid for the lifetime of the method call in which
instances of this class are passed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
Gets the count of registers (really, the total register width, since category width is counted) in the new namespace.abstract RegisterSpec
map
(RegisterSpec registerSpec) final RegisterSpecList
map
(RegisterSpecList sources) final RegisterSpecSet
map
(RegisterSpecSet sources)
-
Constructor Details
-
RegisterMapper
public RegisterMapper()
-
-
Method Details
-
getNewRegisterCount
public abstract int getNewRegisterCount()Gets the count of registers (really, the total register width, since category width is counted) in the new namespace.- Returns:
- ≥ 0 width of new namespace.
-
map
- Parameters:
registerSpec
- old register- Returns:
- register in new space
-
map
- Parameters:
sources
- old register list- Returns:
- new mapped register list, or old if nothing has changed.
-
map
- Parameters:
sources
- old register set- Returns:
- new mapped register set, or old if nothing has changed.
-