aboutsummaryrefslogtreecommitdiff
path: root/src/dotty
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-17 16:09:09 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-19 17:04:55 +0100
commitf0853873bd2a0294d9c32ec732b67172178a339e (patch)
treed44695d9ee1c8e3a520d07e58febd538ca0d23d5 /src/dotty
parent20c6ab2a586b1ea6184c873ef4afcc4258d989cf (diff)
downloaddotty-f0853873bd2a0294d9c32ec732b67172178a339e.tar.gz
dotty-f0853873bd2a0294d9c32ec732b67172178a339e.tar.bz2
dotty-f0853873bd2a0294d9c32ec732b67172178a339e.zip
Adjust periods to allow up to 64 phases.
Diffstat (limited to 'src/dotty')
-rw-r--r--src/dotty/tools/dotc/core/Periods.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/Periods.scala b/src/dotty/tools/dotc/core/Periods.scala
index b4e22bd87..0bdbb94ba 100644
--- a/src/dotty/tools/dotc/core/Periods.scala
+++ b/src/dotty/tools/dotc/core/Periods.scala
@@ -47,8 +47,8 @@ object Periods {
*
* sign, always 0 1 bit
* runid 21 bits
- * last phase id: 5 bits
- * #phases before last: 5 bits
+ * last phase id: 6 bits
+ * #phases before last: 6 bits
*
* // Dmitry: sign == 0 isn't actually always true, in some cases phaseId == -1 is used for shifts, that easily creates code < 0
*/
@@ -153,7 +153,7 @@ object Periods {
final val FirstPhaseId = 1
/** The number of bits needed to encode a phase identifier. */
- final val PhaseWidth = 5
+ final val PhaseWidth = 6
final val PhaseMask = (1 << PhaseWidth) - 1
final val MaxPossiblePhaseId = PhaseMask
} \ No newline at end of file