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

public Class NullRegisterAllocator

extends RegisterAllocator
Class Inheritance
Imports
org.droidparts.dexmaker.dx.ssa.BasicRegisterMapper, .RegisterMapper, .SsaMethod

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

Inherited from org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator:
interferencessaMeth

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RegisterMapper
public boolean
wantsParamsMovedHigh()

Implements abstract org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator.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.
Inherited from org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator:
getCategoryForSsaReggetDefinitionSpecForSsaReginsertMoveBeforeisDefinitionMoveParam

Constructor Detail

NullRegisterAllocatorback to summary
public NullRegisterAllocator(SsaMethod ssaMeth, InterferenceGraph interference)

Method Detail

allocateRegistersback to summary
public RegisterMapper allocateRegisters()

Implements abstract org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator.allocateRegisters.

Doc from org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator.allocateRegisters.

Runs the algorithm.

Returns:RegisterMapper

a register mapper to apply to the SsaMethod

Annotations
@Override
wantsParamsMovedHighback to summary
public boolean wantsParamsMovedHigh()

Implements abstract org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator.wantsParamsMovedHigh.

Doc from org.droidparts.dexmaker.dx.ssa.back.RegisterAllocator.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.

Returns:boolean

true if params should be moved from low to high

Annotations
@Override