aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add dotty-library to classpath in dottydoc testsFelix Mulder2016-11-2212-80/+111
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-2217-135/+268
|
* Remove compiler when running applications via dotrFelix Mulder2016-11-222-3/+6
|
* separate lib from compilerFelix Mulder2016-11-22166-31/+43
|
* Move sbt-bridgeFelix Mulder2016-11-22508-1/+1
|
* Merge pull request #1725 from dotty-staging/change-pickle-earlyGuillaume Martres2016-11-229-31/+37
|\ | | | | Don't retain picklers until backend.
| * Recreate FreshNameCreator for each run.Martin Odersky2016-11-192-3/+4
| | | | | | | | | | | | | | Previously only the FrontEnd got a fresh FreshNameCreator for each run, the other phases used a global one instead. This means that compiling the same file several times would create different synthetic names and classes on each run.
| * Plug another space leak.Martin Odersky2016-11-192-6/+4
| | | | | | | | | | | | | | | | | | | | | | `initInfo` was retained in Symbols. When called from `Namer`, `initInfo` referred to a completer, which referred to a context. With this space leak plugged, we can now compile 1000 times core/Comments.scala (460lines) with -Xmx400M. There still seems to be a space leak on the order of 200KB per run, though. But that seems to have to do with symbols, not contexts.
| * Fix memory leakMartin Odersky2016-11-191-1/+1
| | | | | | | | | | | | The lazy val `dummyTree` acquires a type because of copy-on-write and that type can refer via lastDenotation to a context base.
| * Revert 53cd512Martin Odersky2016-11-191-4/+3
| | | | | | | | | | | | Re-enable context-leak detection by reverting 53cd512. But leak detection seems to be leaky itself :-)
| * More extensive stats about generated treesMartin Odersky2016-11-182-3/+6
| |
| * Say what is compiled under -verboseMartin Odersky2016-11-181-1/+3
| |
| * Don't keep full picklers around until backend.Martin Odersky2016-11-183-14/+17
| | | | | | | | | | | | The memory footprint captured by pickler seems to be about 1/3rd of total footprint. So we gain a lot by not making this die sooner rather than later.
* | Merge pull request #1634 from dotty-staging/change-tasty-pos-ctdodersky2016-11-2137-497/+703
|\ \ | |/ |/| Towards correct positions in TASTY types
| * Make inliner not rely on ambiguous map keyMartin Odersky2016-11-211-9/+25
| |
| * Make This and Super take idents as qualifier/mixinMartin Odersky2016-11-2113-53/+79
| | | | | | | | | | The qualifier of a This and the mixin of a Super were names, which meant that their positions were lost. Now they are untyped idents.
| * Fix typosMartin Odersky2016-11-202-2/+2
| |
| * Address reviewer's comments.Martin Odersky2016-11-175-13/+11
| |
| * Pickle and unpickle type treesMartin Odersky2016-11-1616-314/+502
| | | | | | | | | | | | | | Lots of other changes to make positions work out everywhere. One important change is that now trees can be shared, just as types can. This change improves memory requirements (a bit) and also makes positions in shared trees more robust.
| * Clean up parameterized typedefsMartin Odersky2016-11-1113-80/+77
| | | | | | | | | | | | | | | | Express them in terms PolyTypeTrees rather than having an irregular, untyped only tparams field. This is necessary if we want to pickle type trees instead of types, because now the rhs of a typedef tells the whole story, so we are not required any longer to use the info of the symbol.
| * Merge syntheticTypeParamNames and syntheticLambdaParamNamesMartin Odersky2016-11-113-7/+3
| | | | | | | | | | It seems like overengineering to use different names for poly methods in definitions and synthetic lambdas.
| * Replace PolyType.fromSymbols with LambdaAbstractMartin Odersky2016-11-117-33/+14
| | | | | | | | As a side effect, avoid creating synthetic parameters in lambda abstract.
| * Make test more robustMartin Odersky2016-11-111-1/+1
| | | | | | | | | | | | Pick a less common name for the missing identifier. Depending on my classpath I sometimes got `x is not a package` as an additional error for this one.
| * Add assignType for RefinedTypeTreesMartin Odersky2016-11-112-12/+16
| | | | | | | | | | If we want to pickle type trees, we need a type assigner for RefinedTypeTree.
* | Merge pull request #1724 from dotty-staging/fix-i1648odersky2016-11-182-0/+8
|\ \ | | | | | | Fix #1648: don't define companion object for java.lang.Object
| * | fix #1648: mark companion object for java.lang.Object as non-existentliu fengyun2016-11-182-0/+8
|/ /
* | Merge pull request #1722 from dotty-staging/topic/fix#1708odersky2016-11-176-15/+51
|\ \ | | | | | | Fix #1708: duplicate symbols in package
| * | Annotate error in test not revealed before prev commitFelix Mulder2016-11-172-5/+5
| | |
| * | Fix #1708: return ErrorTree in `typedPackageDef` if pkg has no symbolFelix Mulder2016-11-172-9/+14
| | |
| * | Only issue error, no unlinkingFelix Mulder2016-11-172-8/+8
| | | | | | | | | | | | | | | | | | Unlinking proved to cause other problems in the typer, specifically if typechecking members of non-existing package or things referring to the unlinked package
| * | Unlink type when entering clashing packageFelix Mulder2016-11-175-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | Here we unlink the existing type that clashes with the package to be entered into the symbol table, issue an error and the proceed to enter the rest of the symbols. My concern with this approach is what happens during typechecking if other things reference the unlinked type.
* | | Merge pull request #1720 from dotty-staging/fix-i1701odersky2016-11-174-4/+9
|\ \ \ | | | | | | | | fix #1701: disqualify package name in type name resolution
| * | | don't enter package to owner's scopeliu fengyun2016-11-172-4/+3
| | | |
| * | | fix neg test i1701.scalaliu fengyun2016-11-171-2/+4
| | | |
| * | | fix failing testliu fengyun2016-11-161-1/+1
| | | |
| * | | add tests for #1701liu fengyun2016-11-161-0/+3
| | | |
| * | | fix #1701: disqualify package name in type name resolutionliu fengyun2016-11-161-3/+4
| |/ /
* | | Merge pull request #1711 from dotty-staging/fix-isNullableodersky2016-11-171-1/+1
|\ \ \ | | | | | | | | Fix isNullable when `<:<` term refs.
| * | | Add warning on != with same type fix isNullable.Nicolas Stucki2016-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | Note that without the fix console tests will fail and without the warning there is no way to test the fix.
* | | | Merge pull request #1696 from felixmulder/topic/assert-message-lazinessFelix Mulder2016-11-176-48/+122
|\ \ \ \ | | | | | | | | | | Make sure messages are lazily evaluated until `report` in `Reporter`
| * | | | Add note detailing possible memory leak in `StoreReporter`Felix Mulder2016-11-141-3/+10
| | | | |
| * | | | Make sure all `Message` creation is by nameFelix Mulder2016-11-143-22/+22
| | | | |
| * | | | Make sure messages are lazily evaluated until `report` in `Reporter`Felix Mulder2016-11-105-26/+93
| | |_|/ | |/| |
* | | | Merge pull request #1718 from dotty-staging/fix-#1703odersky2016-11-172-1/+7
|\ \ \ \ | | | | | | | | | | Fix #1703
| * | | | Move test to neg positionMartin Odersky2016-11-162-5/+5
| | | | |
| * | | | Fix #1703 - survive illegal self type clauseMartin Odersky2016-11-162-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since self types are critical we should only install one if it is syntactcally correct. Fixes #1703.
* | | | | Merge pull request #1717 from dotty-staging/fix-#1688odersky2016-11-164-16/+44
|\| | | | | |_|_|/ |/| | | Don't allow redefinition of core classes
| * | | Don't allow redefinition of core classesMartin Odersky2016-11-104-16/+44
| |/ / | | | | | | | | | Fixes #1688.
* | | Merge pull request #1697 from dotty-staging/fix-#1664Dmitry Petrashko2016-11-162-8/+24
|\ \ \ | | | | | | | | Fix #1664: Refine isOuterRef condition
| * | | Fix #1664: Refine isOuterRef conditionMartin Odersky2016-11-102-8/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | We forgot the case where a hoistable method can still refer to free variables that have to be passed using outer pointers. Fixes #1664.