aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move bridge to correct location, fix unmanaged sources in buildFelix Mulder2016-11-22508-2/+2
|
* The root project now aggregates the other projectsGuillaume Martres2016-11-221-1/+7
| | | | | Before this commit, commands such as "test" would not run anything, which means that the JUnit tests were never run.
* Run dotty tests with the correct baseDirectoryGuillaume Martres2016-11-221-2/+4
| | | | | | | | | | | | | | | | | Before this commit, Build.scala contained: baseDirectory in run := baseDirectory.value / "..", The goal of this line is that when invoking the compiler using `run` or `dotc`, the working directory is the root of the dotty project, which is convenient for testing. However, this line also affects the working directory of `dotty-compiler/runPartestRunner`, but not of `dotty-compiler/test`. The result was that `dotty-compiler/test` was broken, and fixing the paths in the code would break `partest`. We solve this by using a different baseDirectory when running partest.
* Fix partest commandsGuillaume Martres2016-11-221-6/+6
|
* Add packageAll alias in root projectGuillaume Martres2016-11-221-0/+1
| | | | | Otherwise `packageAll` by itself as used in aliases like `partest` won't work.
* Move `dottydoc` -> `doc-tool`Felix Mulder2016-11-2245-2/+2
|
* Remove unused examples dir, duplicate contained in tests/posFelix Mulder2016-11-224-10/+3
|
* Update documentation for new sbt commandsFelix Mulder2016-11-224-21/+63
|
* Make `dotr` run binaries similar to script in binFelix Mulder2016-11-221-2/+29
|
* Add `dotc` command with sane classpathFelix Mulder2016-11-221-5/+22
|
* Add `repl` commandFelix Mulder2016-11-221-6/+23
|
* Fix rebuild on change in scriptsFelix Mulder2016-11-221-0/+1
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-22329-74/+84
|
* Move (most) unit tests to correct locationsFelix Mulder2016-11-2249-473/+139
| | | | | | Should still perhaps move `test/dotc/tests.scala` and the others in the same directory to a better more cohesive location. Would like to delete the worksheets as well - but maybe they hold sentimental value...
* Make homogenize apply HKApplysFelix Mulder2016-11-221-0/+2
| | | | | The pickler doesn't unpickle to HKApply, as such - we need to print them in their applied form.
* TastyPrinter: fix RefinedType printingGuillaume Martres2016-11-221-1/+1
|
* dottyDependsOnBootedLib should not be a JUnit testGuillaume Martres2016-11-221-1/+1
| | | | As indicated by the comment right above it.
* Fix pickle_pickleOK testGuillaume Martres2016-11-222-0/+4
| | | | | | | It failed because two files in the same package compiled at the same time defined respectively a class Test and an object Test. I'm guessing this did not fail before because failure depends on the order of the files on the command line.
* Fix "sbt run"Guillaume Martres2016-11-221-0/+3
| | | | | | Broken since the dotty jars were removed from the JVM bootclasspath. I think the proper solution is to use the Scala bootclasspath to pass all the necessary jars but this will do for now.
* PathResolver: fix priorityClassPathGuillaume Martres2016-11-221-1/+1
| | | | | It was wrongly defined before with respect to `commandLineFor` (this is what happens when you rely on strings instead of types!)
* Fix partest compilation of java-interop tests by moving themGuillaume Martres2016-11-2276-1/+1
| | | | | | | | | | Previously, the tests where all in tests/pos/java-interop which means that partest would try to run them as one single test, this failed because some of these tests define classes with the same name. We could fix this by putting them all in separate packages but for now it's simple to move them to tests/pos-java-interop (they will still be run individually as they should thanks to the `java_all` test defined in tests.scala)
* Increanse Jenkins max heap for 1.3G to 1.5GGuillaume Martres2016-11-221-1/+1
| | | | | | The fix to partest to make it compile files in subdirectories means that we're compiling more things and using more heap and has resulted in tests failing with OutOfMemoryError. Hopefully this fixes that.
* Fix JUnit tests by always packaging everythingGuillaume Martres2016-11-221-8/+12
| | | | | | Running `packageAll` is now required before running the tests, this commit enforces this, by making `javaOptions` depend on `packageAll`, this requires rewriting `packageAll` to be a task instead of a command alias.
* Move sjs, make sure that partest compiles everything in dirsFelix Mulder2016-11-2218-187/+149
|
* Add bin project to separate scripted tests from compiler testsFelix Mulder2016-11-222-18/+31
|
* Add tags file to gitignoreFelix Mulder2016-11-221-0/+1
|
* 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.