FileDocCategorySizeDatePackage
NullRegisterAllocator.javaAPI DocAndroid 5.1 API1718Thu Mar 12 22:18:30 GMT 2015com.android.dx.ssa.back

NullRegisterAllocator

public class NullRegisterAllocator extends RegisterAllocator
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.

Fields Summary
Constructors Summary
public NullRegisterAllocator(com.android.dx.ssa.SsaMethod ssaMeth, InterferenceGraph interference)
{@inheritDoc}

        super(ssaMeth, interference);
    
Methods Summary
public com.android.dx.ssa.RegisterMapperallocateRegisters()
{@inheritDoc}

        int oldRegCount = ssaMeth.getRegCount();

        BasicRegisterMapper mapper = new BasicRegisterMapper(oldRegCount);

        for (int i = 0; i < oldRegCount; i++) {
            mapper.addMapping(i, i*2, 2);
        }

        return mapper;
    
public booleanwantsParamsMovedHigh()
{@inheritDoc}

        // We're not smart enough for this.
        return false;