aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Periods.scala
diff options
context:
space:
mode:
authorAbel Nieto <abeln@google.com>2017-03-18 12:28:51 -0400
committerAbel Nieto <abeln@google.com>2017-03-18 12:42:13 -0400
commit253215710bbebe2fbfb28d547a54200c7aeeeb37 (patch)
tree7284df30314dd2be62128b7b721ddb2252981417 /compiler/src/dotty/tools/dotc/core/Periods.scala
parent8b2d315936149efb15ded478fcc1d95ac9650e56 (diff)
downloaddotty-253215710bbebe2fbfb28d547a54200c7aeeeb37.tar.gz
dotty-253215710bbebe2fbfb28d547a54200c7aeeeb37.tar.bz2
dotty-253215710bbebe2fbfb28d547a54200c7aeeeb37.zip
Update periods-related comments
The phase width in a period was bumped from 6 to 7 in https://github.com/lampepfl/dotty/commit/16671a00371df2bdbaf6ae7f51b0ec7191ce94f3 but the comment wasn't updated. Update the comment (and another unrelated comment). Tested: No
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Periods.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Periods.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Periods.scala b/compiler/src/dotty/tools/dotc/core/Periods.scala
index 29d9d208f..892a1f59a 100644
--- a/compiler/src/dotty/tools/dotc/core/Periods.scala
+++ b/compiler/src/dotty/tools/dotc/core/Periods.scala
@@ -46,9 +46,9 @@ object Periods {
* It is coded as follows:
*
* sign, always 0 1 bit
- * runid 19 bits
- * last phase id: 6 bits
- * #phases before last: 6 bits
+ * runid 17 bits
+ * last phase id: 7 bits
+ * #phases before last: 7 bits
*
* // Dmitry: sign == 0 isn't actually always true, in some cases phaseId == -1 is used for shifts, that easily creates code < 0
*/
@@ -108,6 +108,7 @@ object Periods {
else
Nowhere
+ /** The smallest period containing two periods */
def | (that: Period): Period =
Period(this.runId,
this.firstPhaseId min that.firstPhaseId,