summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* One of those annoying patches for which I apolo...Paul Phillips2010-11-0253-341/+333
| | | | | | | | | | One of those annoying patches for which I apologize in advance. It's a step toward a better world. Almost all the changes herein are simple transformations of "x hasFlag FOO" to "x.isFoo", with the remainder minor cleanups. It's too big to review, so let's say no review: but I'm still all ears for input on the issues mostly outlined in HasFlags.scala.
* Make compile runner thread volatile + remove a ...Eugene Vigdorchik2010-11-021-2/+3
| | | | | | Make compile runner thread volatile + remove a race condition. Review by odersky.
* Enable test directories for 'run'.Hubert Plociniczak2010-11-023-8/+4
|
* Added separate bitmaps for private and transien...Hubert Plociniczak2010-11-0217-32/+405
| | | | | | | | | | Added separate bitmaps for private and transient lazy vals. Closes #3038, #1573. Review by dragos. I had to fix a couple of initialization issues that checkinit forced me to do and that weren't a problem before because the bitmap was serialized even for @transitive. For that I needed to change the setters in checkinit so that they also update the bitmap.
* Don't crash the compiler for the 'companions in...Hubert Plociniczak2010-11-024-13/+40
| | | | | | | Don't crash the compiler for the 'companions in different files' error. This turned out to be pretty bad for the presentation compiler. References #1286. Review by extempore
* Closes #3932, #1537. Review by extemporeHubert Plociniczak2010-11-026-5/+64
|
* Closes #3927. No reviewHubert Plociniczak2010-11-022-1/+7
|
* Closes #3816. Review by moors.Hubert Plociniczak2010-11-023-2/+52
|
* some cleanup. no reviewHubert Plociniczak2010-11-022-3/+2
|
* Closes #2792. no reviewHubert Plociniczak2010-11-028-8/+44
|
* Created @strictfp annotation in scala.annotation.Paul Phillips2010-11-015-2/+35
| | | | | | your fp with no tolerance for tomfoolery, this is the commit for you. Closes #1708, review by community.
* Don't call exit from MainGenericRunner in a way...Paul Phillips2010-11-011-17/+24
| | | | | | Don't call exit from MainGenericRunner in a way which is impossible to avoid. Closes #3901, no review.
* Don't truncate stack traces in the repl.Paul Phillips2010-11-011-4/+5
|
* Don't let stringOf lose elements to print by ha...Paul Phillips2010-11-011-1/+1
| | | | | | Don't let stringOf lose elements to print by hanging onto set semantics for too long. Closes #3944, no review.
* Sprinkling in some names to avoid reflective ca...Paul Phillips2010-11-013-6/+11
| | | | | | Sprinkling in some names to avoid reflective calls in the compiler as suggested by magarcia. Closes #3974, no review.
* Achieved similar simplicity gains in NumericRan...Paul Phillips2010-11-013-101/+97
| | | | | | | | | | Achieved similar simplicity gains in NumericRange to those now in Range. Obvious remaining task is to specialize NumericRange and after verifying the performance, eliminate one or the other. For now, both soldier onward despite near-convergence of implementation. Closes #3232, no review.
* Removed a disappointly small amount of code ass...Paul Phillips2010-11-012-53/+0
| | | | | | Removed a disappointly small amount of code associated with the obsolete namePos. No review.
* Eliminated duplication among the Rich* wrappers...Paul Phillips2010-11-0114-243/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminated duplication among the Rich* wrappers, careful not to impact performance on RichInt in particular. Attempted to make Proxy a little bit typier. Proxy creates an asymmetric equals method by design so it's unfixable in that regard, but achieved a minor miracle anyway by making the Rich* wrappers behave symmetrically. Note: said miracle involved having the wrappers extend ScalaNumber in order to induce the special == semantics. This in turn led to implicit conversion conflicts with the boxed types on methods like .intValue(). Resolved by moving the Rich* implicits into LowPriorityImplicits. This of course also removed the intentional ambiguity which prevents primitives from automatically becoming AnyRefs. Solved THAT one by creating dedicated, laser-precise ambiguity creating implicits in Predef which exclude only the AnyRef methods. Although this is admittedly less than elegant, it is still better than it was: this way it is direct and explicit rather than depending upon the "implicit implicit conflict" where the barrier to promotion is intermingled with the definitions of wrapper classes. (See the history of BoxedUnit/RichUnit for a good example of why these concerns require separation.) It's all worth it: assert(intWrapper(5) == 5) assert(5 == intWrapper(5)) assert(5 == (5: java.lang.Integer)) assert((5: java.lang.Integer) == 5) assert((5: java.lang.Integer) == intWrapper(5)) assert(intWrapper(5) == (5: java.lang.Integer)) Review by community.
* Relaxed non-sensible warning for comparisons wh...Paul Phillips2010-11-012-3/+6
| | | | | | | Relaxed non-sensible warning for comparisons when ScalaNumber is involved, since there is special number logic which makes it wrong to chastise us. No review.
* Took a step back and massively simplified Range.Paul Phillips2010-11-013-95/+139
| | | | | | | | | | | | | | | | | | | | | | | | all the boundary conditions I'm aware of, including not yet reported ones such as scala> 5 until 5 last res0: Int = 4 and scala> 1073741823 to Int.MaxValue by (1 << 24) size res0: Int = 65 scala> 1073741823 to Int.MaxValue by (1 << 24) drop 100 size res1: Int = 256 Also includes conformance improvements (e.g. 5 until 5 init should throw an exception, not return empty) and general improvements (e.g. 1 to 10 tail should return a Range.) Will close associated tickets such as #3232 after I complete similar work on NumericRange. Review by community.
* Removed race from test for #3356. No reviewPhilipp Haller2010-11-012-1/+4
|
* Made an @inline marked method final because oth...Paul Phillips2010-10-301-1/+1
| | | | | | Made an @inline marked method final because otherwise it won't be inlined. No review.
* Ported --update-check from partest-alternative ...Paul Phillips2010-10-304-6/+16
| | | | | | | | Ported --update-check from partest-alternative to partest actual. Once again all can daily demonstrate their amazing resolve by not mass updating checkfiles by the hundreds with whatever the current output happens to be. No review.
* Widened the pattern type in the pattern matcher...Paul Phillips2010-10-301-1/+1
| | | | | | | | Widened the pattern type in the pattern matcher's attempt to statically rule out matches so that "abc" match { case _: x.type => } is not incorrectly excluded. No review.
* partest: fixed property handling of --debug.Philipp Haller2010-10-293-9/+15
|
* presentation compiler hardenings.Martin Odersky2010-10-295-7/+17
|
* Some deletions in global based on adriaan's goo...Paul Phillips2010-10-291-37/+12
| | | | | Some deletions in global based on adriaan's good advice. No review.
* Correctly find completion proposals for ImportT...Iulian Dragos2010-10-281-13/+18
| | | | | Correctly find completion proposals for ImportType. review by odersky
* Remote test help improved.Aleksandar Pokopec2010-10-281-1/+9
| | | | | No review
* Performance bug in hash table splitter fixed, ...Aleksandar Pokopec2010-10-288-13/+100
| | | | | | | | | | Performance bug in hash table splitter fixed, where size map was not used and all the elements were counted instead. Performance tests now pass. No review
* Added hash table benchmarks.Aleksandar Pokopec2010-10-285-8/+163
| | | | | No review.
* Two hashcode-related failing tests fixed.Aleksandar Pokopec2010-10-285-12/+12
| | | | | No review.
* Debugging parallel hash tables.Aleksandar Pokopec2010-10-2810-379/+537
| | | | | No review.
* Changed improvement hash function to murmur hash.Aleksandar Pokopec2010-10-281-6/+28
| | | | | Review by extempore.
* Some serious bugfixes in parallel hash tables.Aleksandar Pokopec2010-10-289-16/+87
| | | | | No review.
* Mostly refactored existing test functionality f...Aleksandar Pokopec2010-10-2811-276/+516
| | | | | | | | Mostly refactored existing test functionality for parallel collections. Added immutable hash set tests. No review.
* Modified remote test.Aleksandar Pokopec2010-10-281-1/+1
| | | | | No review.
* Modified remote test.Aleksandar Pokopec2010-10-282-2/+2
| | | | | No review.
* Some cleanups and long-dead code abatement in t...Paul Phillips2010-10-272-68/+16
| | | | | | Some cleanups and long-dead code abatement in the land where patterns are typed. No review, already reviewed live by moors.
* Some issues with Tuple2/3.Paul Phillips2010-10-273-82/+14
| | | | | | | | | foreach method in Tuple3, and both classes have what is now a redundant zip method which is also unfortunately completely strict in a not entirely fixable fashion. So "zip" is deprecated in favor of zipped. Closes #3526, but the code which closes that is primarily found in r23228. No review.
* A double goodness whammy involving type inferen...Paul Phillips2010-10-275-75/+120
| | | | | | | | | | | | | | | | | | | | A double goodness whammy involving type inference at the borders. 1) Implicit search preserves singleton type fidelity. 2) Unification of parent bounds is (closer to) correct. Result of 1: "implicit def f(x: Foo.type)" will convert object Foo. Result of 2: "new Trait[Int] { }" may enjoy its type constructor being inferred, no longer foiled by the anonymous class. Also included are some clarity-enhnancing renamings and refactorings. Performance note: I heavily benchmarked the change to isSubArgs and it is reproducibly faster than the previous implementation. Numbers and methodology available upon request. Closes #2693, #3964. Review by moors, who wrote most of this patch but might like to review the comments.
* Fix for IDE ticket #1000180: the presentation c...Iulian Dragos2010-10-271-25/+33
| | | | | | Fix for IDE ticket #1000180: the presentation compiler does not propose completions on names containing $.
* [scaladoc] Even faster JavaScript index filteri...Gilles Dubochet2010-10-272-94/+127
| | | | | | [scaladoc] Even faster JavaScript index filtering, by reducing DOM manipulations. Contributed by Kato Kazuyoshi. Review by dubochet.
* Some uninteresting code related to error messag...Paul Phillips2010-10-276-37/+47
| | | | | | | | | | | | | | | | | | | | | | Some uninteresting code related to error messages, which I'm checking in mostly because I booted the r23379 commit in a git-svn meltdown and posterity demands the message, which was: You can now use the self-type of an anonymous class as a singleton type in a pattern match ON THE MOON. Actual test case excerpt: val x4 = new { self => def f(x: Any) = x match { case _: x1.type => 1 case _: x2.type => 2 case _: x3.type => 3 case _: self.type => 4 case x: Dingus.type => x.IamDingus } } Closes #576, no review.
* Merge branch 'oct26' of /scala/trunkPaul Phillips2010-10-275-21/+51
|
* Test for long fixed bug. Closes #2119, no review.Paul Phillips2010-10-261-0/+4
|
* The treecheckers revealed that auxiliary constr...Paul Phillips2010-10-262-51/+57
| | | | | | | | | The treecheckers revealed that auxiliary constructors, which must follow the primary at the source level, are reordered to precede the primary during the constructors phase. Added some logic to preserve the original ordering. Also tweaked treePrinters to not confusingly print object Foo as "final class Foo". Review by moors.
* Closes #3010. Review by prokopec.Philipp Haller2010-10-262-7/+3
|
* close #3954, no reviewLukas Rytz2010-10-263-1/+22
|
* Closes #3920. Review by prokopec.Philipp Haller2010-10-261-1/+3
|