Skip to content

Commit f085387

Browse files
committed
Adjust periods to allow up to 64 phases.
1 parent 20c6ab2 commit f085387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dotty/tools/dotc/core/Periods.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ object Periods {
4747
*
4848
* sign, always 0 1 bit
4949
* runid 21 bits
50-
* last phase id: 5 bits
51-
* #phases before last: 5 bits
50+
* last phase id: 6 bits
51+
* #phases before last: 6 bits
5252
*
5353
* // Dmitry: sign == 0 isn't actually always true, in some cases phaseId == -1 is used for shifts, that easily creates code < 0
5454
*/
@@ -153,7 +153,7 @@ object Periods {
153153
final val FirstPhaseId = 1
154154

155155
/** The number of bits needed to encode a phase identifier. */
156-
final val PhaseWidth = 5
156+
final val PhaseWidth = 6
157157
final val PhaseMask = (1 << PhaseWidth) - 1
158158
final val MaxPossiblePhaseId = PhaseMask
159159
}

0 commit comments

Comments
 (0)