Top Description Constructors Methods
org.droidparts.dexmaker.dx.ssa

public abstract Class RegisterMapper

extends Object
Class Inheritance
Known Direct Subclasses
org.droidparts.dexmaker.dx.ssa.SsaRenamer.BlockRenamer.RenamingMapper, org.droidparts.dexmaker.dx.ssa.BasicRegisterMapper
Imports
org.droidparts.dexmaker.dx.rop.code.RegisterSpec, .RegisterSpecList

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract int

Returns:

>= 0 width of new namespace.
getNewRegisterCount
()

Gets the count of registers (really, the total register width, since category width is counted) in the new namespace.

public abstract RegisterSpec

Returns:

register in new space
map
(RegisterSpec
old register
registerSpec
)

public final RegisterSpecList

Returns:

new mapped register list, or old if nothing has changed.
map
(RegisterSpecList
old register list
sources
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RegisterMapperback to summary
public RegisterMapper()

Method Detail

getNewRegisterCountback to summary
public abstract int getNewRegisterCount()

Gets the count of registers (really, the total register width, since category width is counted) in the new namespace.

Returns:int

>= 0 width of new namespace.

mapback to summary
public abstract RegisterSpec map(RegisterSpec registerSpec)
Parameters
registerSpec:RegisterSpec

old register

Returns:RegisterSpec

register in new space

mapback to summary
public final RegisterSpecList map(RegisterSpecList sources)
Parameters
sources:RegisterSpecList

old register list

Returns:RegisterSpecList

new mapped register list, or old if nothing has changed.