summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Refined crash avoidance related to self type te...Paul Phillips2010-09-282-2/+19
| | | | | | | | | | | | | | | Refined crash avoidance related to self type tests in anonymous classes as introduced for #576. Now it really only excludes anonymous classes. Suddenly, this works: override def equals(other: Any) = other match { case _: this.type => true case _ => false } Who will be the first to roll out some reference equality in the this.type style? No review.
* Fixed an ancient crasher in explicitouter invol...Paul Phillips2010-09-283-13/+37
| | | | | | Fixed an ancient crasher in explicitouter involving singleton self-types. Closes #266, review by odersky.
* replaced deprecated method call. review by rytz.Martin Odersky2010-09-281-1/+1
|
* Update comment in ByteCodecs. No review.Lukas Rytz2010-09-281-3/+16
|
* Fixes an infinite loop.Aleksandar Pokopec2010-09-281-0/+4
|
* Cleaning up the contents of test.Paul Phillips2010-09-2866-629/+199
| | | | | | | | | | | including "CheckEither", written against scalacheck 1.2 in the year 471 AD. Removed all the duplicates I could find, mostly between pending and files. Renamed a bunch of tests so they wouldn't look like likely duplicates next time around. Nominated somebody else to do this once in a while. No review.
* Bringing the tree and icode checkers back to life.Paul Phillips2010-09-2733-665/+1630
| | | | | | | | | | | | | | | | | | | | | | | | build/pack/bin/scalac -d /tmp -Ycheck-debug -Ycheck:all \ src/compiler/scala/tools/nsc/Global.scala That blows up in constructors as most files do, so also try it with -Ycheck:icode to see the pretty icode output (for a little while anyway, after which it will again blow up.) Our work has only just begun! See test/checker-tests/fail*.scala for 11 examples of places where the checker cries foul. Many of them are telling us about real issues and we should listen, but I will need help to figure out which are legitimate and which should be eliminated by altering the checkers. This patch also hacks on some territory the checkers drew me into, especially TypeKinds, where I figured anything which had been commented out since 2005 was fair game. (Optional) review by dragos. (The one place I know I could use a look is in Checkers.scala, because I had to relax some checks and add at least one newer opcode.)
* closes #3873.Adriaan Moors2010-09-274-74/+34
| | | | | review by maier as no good deed goes unpunished
* Fixes comments in Map and mutable.Map. No reviewAleksandar Pokopec2010-09-272-2/+2
|
* close #3864.Lukas Rytz2010-09-274-2/+83
|
* Test for #3829. No review.Aleksandar Pokopec2010-09-271-0/+42
|
* Fixes #3829. Review by extempore.Aleksandar Pokopec2010-09-273-17/+34
|
* Fixes #3847. No review.Aleksandar Pokopec2010-09-272-1/+22
|
* Removes abstract types in ParSeq and ParIterable.Aleksandar Pokopec2010-09-252-2/+2
|
* Some progress on reviving TreeCheckers, plus a ...Paul Phillips2010-09-2410-87/+139
| | | | | | | | Some progress on reviving TreeCheckers, plus a couple bugfixes and better error messages revealed by that progress. Also applied tiny increment in understanding to fixing up TreeDSL some more. The hand of martin guides from above, so no review.
* Fixed an abstract type issue. No reviewAleksandar Pokopec2010-09-242-5/+1
|
* A small typo. No reviewAleksandar Pokopec2010-09-241-1/+1
|
* Fixed ParSeqView, added Patched and Reversed.Aleksandar Pokopec2010-09-244-31/+84
|
* closes #3808.Adriaan Moors2010-09-244-27/+30
| | | | | | | | moved typing indentation to where it belongs, now inliner shuold be able to do its job in implicits as well no review
* Adds a half second delay before showing tooltips.Pedro Furlanetto2010-09-241-1/+3
|
* zippedWithIndex and zippedAll added to ParItera...Aleksandar Pokopec2010-09-237-17/+117
| | | | | | zippedWithIndex and zippedAll added to ParIterable. ZippedAll view reimplemented. No review
* closes #3857: retain pre-erasure info in type h...Adriaan Moors2010-09-233-25/+52
| | | | | | | | | closes #3857: retain pre-erasure info in type history after cloning of mixed in members and, specifically for this bug, fields, so that java generic type sigs are more precise. review by DRagos
* closes #3800.Adriaan Moors2010-09-232-4/+10
| | | | | | | | appliedType goes under annotations. removed some dead code in isSubtypeHK0. review by rytz
* Adds a zip for ParIterables + a new Zipped view...Aleksandar Pokopec2010-09-239-74/+220
| | | | | | Adds a zip for ParIterables + a new Zipped view for ParSeqView and ParIterableView + a bench test. No review
* AIOOBE in scanner when typing in the end of file.Eugene Vigdorchik2010-09-231-1/+2
|
* InterruptedException while waiting for result s...Eugene Vigdorchik2010-09-231-1/+6
| | | | | | InterruptedException while waiting for result should be ignored. review by odersky
* Revert "CPI -> SCPI to (hopefully) fix scaladoc...Adriaan Moors2010-09-231-1/+1
| | | | | | | | | | | | Revert "CPI -> SCPI to (hopefully) fix scaladoc failure in nightly. probably indicates a bug in scaladoc or the type checker or the spec, since abstract type members seem to be allowed in objects inconsistently across these three. no review." that was a little too hasty.. SCPI was already defined somewhere This reverts commit 165424cd9175d7e6d33bc541f2aff2575ee31121.
* CPI -> SCPI to (hopefully) fix scaladoc failure...Adriaan Moors2010-09-231-1/+1
| | | | | | | | CPI -> SCPI to (hopefully) fix scaladoc failure in nightly. probably indicates a bug in scaladoc or the type checker or the spec, since abstract type members seem to be allowed in objects inconsistently across these three. no review.
* Rollback MutableSourceFile, the whole idea is b...Eugene Vigdorchik2010-09-231-41/+24
| | | | | Rollback MutableSourceFile, the whole idea is broken
* Test case closes #3774, no review.Paul Phillips2010-09-222-0/+10
|
* Added an override to immutable.IndexedSeq#toInd...Paul Phillips2010-09-222-0/+11
| | | | | | Added an override to immutable.IndexedSeq#toIndexedSeq which returns itself. Closes #3732, no review.
* Test case closes #3509, no review.Paul Phillips2010-09-222-0/+10
|
* Test case closes #3498, no review.Paul Phillips2010-09-221-0/+15
|
* Test case submitted by mark harrah closes #2813...Paul Phillips2010-09-221-0/+39
| | | | | Test case submitted by mark harrah closes #2813, no review.
* Test case closes #2619, no review.Paul Phillips2010-09-221-0/+80
|
* Test case closes #1548, no review.Paul Phillips2010-09-223-0/+19
|
* closes #3792: type equality for singleton types...Adriaan Moors2010-09-222-9/+15
| | | | | | | | | closes #3792: type equality for singleton types did not take type aliases into account while chasing the chain of underlying types (if the underlying type is an alias of a singleton type, it should be followed) review by odersky
* removed deskolemize hack for tcpoly.Adriaan Moors2010-09-223-3/+5
| | | | | | | | initialize the tree's symbol in typedTypeDef to make sure its info is loaded. review by odersky
* documentation for conforms and friendsAdriaan Moors2010-09-221-7/+17
| | | | | no review.
* A cleanup of the inliner.Paul Phillips2010-09-2221-743/+450
| | | | | | and still came out of the washing machine smiling. Already reviewed by a certain i. dragos so no review.
* Reimplementing parallel views to solve several ...Aleksandar Pokopec2010-09-2216-107/+390
| | | | | | Reimplementing parallel views to solve several performance glitches. No review.
* Closes #1591.Hubert Plociniczak2010-09-2215-53/+163
|
* do not cache lineIndices for MutableSourceFile.Eugene Vigdorchik2010-09-221-2/+6
|
* Found the following inefficiencies in fjbg:Paul Phillips2010-09-222-4/+38
| | | | | | | | | | | | | | | | | | | | | | ldc being used instead of bipush or sipush. The cheaper instructions were only being used when the argument was typed as byte or short, but an Int in the byte or short range can as easily use them. This also saves an entry in the constant pool. iconst_n not being used except on Ints. Same issue in reverse: pushing short 3 on the stack is cheaper with iconst_3 than with sipush. Example: class A { def f1: Int = 100 // was ldc #X, now bipush 100 def f2: Int = 5000 // was ldc #X, now sipush 5000 def f3: Byte = 2 // was bipush 2, now iconst_2 def f4: Short = 2 // was sipush 2, now iconst_2 } Review by dragos.
* Scala IDE needs mutable files with changing con...Eugene Vigdorchik2010-09-214-27/+40
| | | | | Scala IDE needs mutable files with changing content. review by odersky
* [scaladoc] Adds some simple tests for Scaladoc ...Gilles Dubochet2010-09-212-1/+78
| | | | | | [scaladoc] Adds some simple tests for Scaladoc (using Scalacheck). Contributed by Kato Kazuyosh. No review.
* [scaladoc] Closes #3541.Gilles Dubochet2010-09-211-1/+9
|
* Fixes the way results of Scalatest are checked ...Gilles Dubochet2010-09-211-1/+2
| | | | | | Fixes the way results of Scalatest are checked by Partest. Contributed by Kato Kazuyoshi. Review by phaller.
* Painstaking elimination of redundant array crea...Paul Phillips2010-09-212-28/+27
| | | | | | | | | Painstaking elimination of redundant array creation code, also eliminating the lingering usage of "wrapArray" which it has long been noted can go away after next newstarr and now perhaps it really can. A very careful patch so I'll say no review, but it's a bit of a sensitive area so feel free to go reviewing anyway.
* Changed Seq#distinct to use a mutable hashset r...Paul Phillips2010-09-201-3/+3
| | | | | | | | | | | | | Changed Seq#distinct to use a mutable hashset rather than an immutable one in a var. The benchmarks are not close: it's anywhere from 2 to 3 times faster this way. Majority of the credit goes to Tiark for slyly leaving a comment where I could see it. TR: should use mutable.HashSet? PP: yes. yes we should. Review by community.