Run.scala contains:
assert(comp.phases.last.last.id <= Periods.MaxPossiblePhaseId)
But phases is a def in Compiler that will allocate every phase. This is pretty wasteful since we then throw away the result. We could probably move this assert inside the definition of phases, or at the point where we actually use phases.
Run.scala contains:
But
phasesis a def inCompilerthat will allocate every phase. This is pretty wasteful since we then throw away the result. We could probably move this assert inside the definition ofphases, or at the point where we actually usephases.