FileDocCategorySizeDatePackage
NullRegisterAllocator.javaAPI DocAndroid 1.5 API1807Wed May 06 22:41:02 BST 2009com.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;