diff options
author | Dmitry Petrashko <dark@d-d.me> | 2017-03-18 19:04:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-18 19:04:04 +0100 |
commit | 3ec16c78bd8a90f1205bb9047969ab3fd9e8dd75 (patch) | |
tree | 7284df30314dd2be62128b7b721ddb2252981417 /compiler | |
parent | 8b2d315936149efb15ded478fcc1d95ac9650e56 (diff) | |
parent | 253215710bbebe2fbfb28d547a54200c7aeeeb37 (diff) | |
download | dotty-3ec16c78bd8a90f1205bb9047969ab3fd9e8dd75.tar.gz dotty-3ec16c78bd8a90f1205bb9047969ab3fd9e8dd75.tar.bz2 dotty-3ec16c78bd8a90f1205bb9047969ab3fd9e8dd75.zip |
Merge pull request #2119 from abeln/period-comment
Update periods-related comments
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Periods.scala | 7 |
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, |