public RegisterAndStackAllocator(AllocatorStats stats, int totalNumberOfVariables, int numberOfThoseWhichAreRegisters) { this.numberOfRegistersLeft = numberOfThoseWhichAreRegisters; this.numberOfStackWordsLeft = totalNumberOfVariables - numberOfThoseWhichAreRegisters; this.currentFreeRegisters = stats.AllFreeRegisters; this.currentLastUsedStackIndex = stats.LastUsedStackIndex; }
public RegisterAndStackAllocator(AllocatorStats stats, int totalNumberOfVariables, int numberOfThoseWhichAreRegisters) { this.numberOfRegistersLeft=numberOfThoseWhichAreRegisters; this.numberOfStackWordsLeft=totalNumberOfVariables-numberOfThoseWhichAreRegisters; this.currentFreeRegisters=stats.AllFreeRegisters; this.currentLastUsedStackIndex=stats.LastUsedStackIndex; }