Package com.android.dx.ssa.back
Class NullRegisterAllocator
java.lang.Object
com.android.dx.ssa.back.RegisterAllocator
com.android.dx.ssa.back.NullRegisterAllocator
A register allocator that maps SSA register n to Rop register 2*n,
essentially preserving the original mapping and remaining agnostic
about normal or wide categories. Used for debugging.
-
Field Summary
Fields inherited from class com.android.dx.ssa.back.RegisterAllocator
interference, ssaMeth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRuns the algorithm.boolean
Indicates whether the method params were allocated at the bottom of the namespace, and thus should be moved up to the top of the namespace after phi removal.Methods inherited from class com.android.dx.ssa.back.RegisterAllocator
getCategoryForSsaReg, getDefinitionSpecForSsaReg, insertMoveBefore, isDefinitionMoveParam
-
Constructor Details
-
NullRegisterAllocator
-
-
Method Details
-
wantsParamsMovedHigh
public boolean wantsParamsMovedHigh()Indicates whether the method params were allocated at the bottom of the namespace, and thus should be moved up to the top of the namespace after phi removal.- Specified by:
wantsParamsMovedHigh
in classRegisterAllocator
- Returns:
true
if params should be moved from low to high
-
allocateRegisters
Runs the algorithm.- Specified by:
allocateRegisters
in classRegisterAllocator
- Returns:
- a register mapper to apply to the
SsaMethod
-