summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Issue a warning about classes/objects inside pa...Paul Phillips2011-08-041-0/+7
| | | | | Issue a warning about classes/objects inside package objects, no review.
* Cleanups in Namers and AddInterfaces emerging f...Paul Phillips2011-08-044-163/+148
| | | | | | | | Cleanups in Namers and AddInterfaces emerging from bugfixing attempts and comprehension pursuits. I appear to have accidentally fixed at least one bug, as there are new (correct) warnings when building the compiler involving permanently hidden imports. No review.
* Update fork/join framework to JDK release 1.7.0Philipp Haller2011-08-039-3228/+4751
|
* Adds version information from @migration and @d...Kato Kazuyoshi2011-08-034-10/+24
| | | | | | | Adds version information from @migration and @deprecated to ScalaDoc. Adds support for @migration in Symbols and MemberEntity. Contributed by Simon Ochsenreither. Review by heathermiller.
* Finished up some backend cleanups I'd had lying...Paul Phillips2011-08-0311-225/+172
| | | | | | Finished up some backend cleanups I'd had lying around since scala days. No review.
* Took a different tack on avoiding unnecessarily...Paul Phillips2011-08-033-11/+22
| | | | | | | | | Took a different tack on avoiding unnecessarily final bytecode methods after discovering the inliner is not a fan of any reduction in finality. Restored the application of the lateFINAL flag in makeNotPrivate, and switched to sorting out who is ACC_FINAL and who isn't in genjvm. Review by dragos.
* Made error messages like "object List is not a ...Paul Phillips2011-08-023-7/+14
| | | | | | Made error messages like "object List is not a value" be a little more helpful about why that is. No review.
* Minor changes to the Scaladoc stylesheets, as s...Heather Miller2011-08-022-3/+3
| | | | | | Minor changes to the Scaladoc stylesheets, as suggested by Simon Ochsenreither. Closes SI-4499. No review.
* Merged enhancements made to scaladoc filter pan...Heather Miller2011-08-023-92/+125
| | | | | | | | Merged enhancements made to scaladoc filter panel by Ruediger Keller. Enhancements include faster filtering, automatically focused text input field, improved searching (no regex syntax, so now its possible to search for members like ++). No review.
* Fix memory leak in SyncVar. Review by prokopecPhilipp Haller2011-08-011-9/+11
|
* Rename a file to celebrate our glorious ant ove...Paul Phillips2011-08-011-0/+0
| | | | | Rename a file to celebrate our glorious ant overlords, no review.
* A couple low impact cleanups/optimizations, no ...Paul Phillips2011-08-013-23/+26
| | | | | A couple low impact cleanups/optimizations, no review.
* Tired of ugly-printing in the repl, I sort of f...Paul Phillips2011-08-016-15/+426
| | | | | | | | | | | | | | | | | | | | | | | | | | Tired of ugly-printing in the repl, I sort of finished some old code for pretty printing token streams. It is at least a lot prettier than it once was, and I threw in some power mode helpers. Now you can do this. % scala -Dscala.repl.power Welcome to Scala version 2.10.0.r25427-b20110801144412 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). // .u turns a string into an URL like .r does into a regex, and .pp pretty prints the url scala> "https://raw.github.com/scalaz/scalaz/master/example/src/main/scala/scal az/example/ExampleIteratee.scala".u.pp package scalaz.example object ExampleIteratee { def main (args: Array[String]) = run import scalaz._ import Scalaz._ import IterV._ [etc it's all there in real life] } No review.
* Sped up traversal over mutable maps by a factor...Paul Phillips2011-08-014-38/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sped up traversal over mutable maps by a factor of two. There was this comment in HashTable explaining why foreach was implemented in terms of iterator. /* * We should implement this as a primitive operation over the * underlying array, but it can cause a behaviour change in edge cases * where: * - Someone modifies a map during iteration * - The insertion point is close to the iteration point. */ Item 1: foreach and iterator didn't behave the same if the map was mutated in the midst of the traversal anyway. Item 2: protecting some particular undefinition of inherently undefined behavior is a pretty unconvincing reason to impose a 2x penalty on foreach. Here are the before/after times for traversing the keys with foreach vs. with iterator. Same impact on values and on the map itself. The benchmark code is included in this commit. before: foreach 143700900 iterator 143848900 after: foreach 67024400 iterator 144890300 Respecting the fact that this might be causing some behavior somewhere to change, even though it would be pretty sick to be relying upon it, ** ATTENTION! POSSIBLE BEHAVIOR CHANGE! ** Review by dragos.
* Working on jar creation infrastructure.Paul Phillips2011-08-018-54/+182
| | | | | | | | | | | | | | | | | | output generation (but only then, since otherwise we're not creating the jar): 1) -Xmain-class foo.Bar will give the jar a Main-Class of foo.Bar 2) Alternatively, if there is only one runnable program, that will be the Main-Class 3) Always, the jar's manifest will have an entry for Scala-Compiler-Version. Not very relatedly, a warning is now issued when a module has a main method but a runnable program will not be generated. Closes SI-4861. This represents an opening step toward automatically recognizing mismatched bytecode situations: coarse, but useful and safe. Review by mirco.
* Some additions to definitions for recognizing m...Paul Phillips2011-08-012-12/+30
| | | | | Some additions to definitions for recognizing main methods, no review.
* Fix to make LiftCode compiler under 1.5.Martin Odersky2011-07-301-2/+2
|
* LiftCode works again, now integrated with new r...Martin Odersky2011-07-3025-487/+203
| | | | | | | | LiftCode works again, now integrated with new reflection library. Other changes: def Literal(x: Any) has been deprecated, and all its uses removed. Modifiers has lost positions as fourth case class argument; is now a field, mirroring Tree.pos (this removes junk in patterns and makes reification simpler). Review by extempore.
* One last build fix for our poor java5 build ser...Paul Phillips2011-07-301-18/+25
| | | | | | One last build fix for our poor java5 build servers with their String.isEmpty confusion, no review.
* Getting LiftCode to work.Martin Odersky2011-07-307-87/+92
|
* - Update Scaladoc for LinkedList and for some o...Paul Phillips2011-07-297-40/+311
| | | | | | | | | | - Update Scaladoc for LinkedList and for some of the functions/operators - that it inherits. Completed Scaladoc for append Added example - in GenSeqLike for apply. Added $collectExample to collect in - GenTraversableLike and supplied an actual example in LinkedList Contributed by Donald McLean.
* Move vector descrition from the obejct to the c...Paul Phillips2011-07-291-8/+8
| | | | | | | | Move vector descrition from the obejct to the class, where it actually makes sense. Preserve previously existing attribute definitions. Contributed by Daniel C. Sobral
* Following up on things that -Xlint told me, som...Paul Phillips2011-07-2931-110/+109
| | | | | | | | | | | | | | | Following up on things that -Xlint told me, sometimes because Mr. Linty was being sensible and other times just to shut him up so we can hear better in the future. - made xml.Equality public because it occurs in public method signatures - made some actor classes with inaccessible-unoverridable methods final - eliminated a bunch of "dead code follows" warnings by deleting the dead code which really did follow - improved the reliability of warnings about inaccessible types For the changes in actors, review by phaller.
* Quieting down mr. lifty, no review.Paul Phillips2011-07-292-3/+3
|
* Fixing the very broken build (was going for "co...Paul Phillips2011-07-291-25/+32
| | | | | | | Fixing the very broken build (was going for "compiling" mostly because I can't be sure what to do with some of this) really this code is certainly not correct, please review by odersky.
* First steps towards liftingMartin Odersky2011-07-2910-71/+202
|
* Added two new compiler options:Paul Phillips2011-07-2913-18/+119
| | | | | | | | | | | | | | | -Ywarn-adapted-args // also included in -Xlint -Yno-adapted-args The former warns when a () is inserted or an argument list is implicitly tupled. The latter errors under the same conditions. Using these options I found several bugs in the distribution which would otherwise be nearly impossible to spot. These bugs were innocuous (I think) but similar bugs could easily be (and have been) otherwise. Certain particularly threatening scenarios are at minimum warned about regardless of options given. Closes SI-4851, no review.
* Turned off the notFINAL flag which was applied ...Paul Phillips2011-07-281-2/+8
| | | | | | | | Turned off the notFINAL flag which was applied to expanded name methods due to java breakage, on the principle of "first, do no harm." If there is some rationale why these methods must be made final, let's at least get it documented. Review by dragos.
* Expression type argument instantiation should n...Paul Phillips2011-07-281-7/+18
| | | | | | | | Expression type argument instantiation should not fail in a context expecting Unit if there is any valid instantiation, because value discarding should kick in and offer a literal (). Closes SI-4853, review by odersky.
* Remove sigint handler on repl exit as a sanity ...Paul Phillips2011-07-282-0/+4
| | | | | Remove sigint handler on repl exit as a sanity check, no review.
* Closes #4603. Review by extempore.Martin Odersky2011-07-281-2/+5
|
* Scaladoc shouldn't drop type arguments to alias...Kato Kazuyoshi2011-07-281-1/+2
| | | | | | Scaladoc shouldn't drop type arguments to aliased tuple. Related to SI-4676. Review by pedrofurla.
* Changed forwarders not to generate final method...Paul Phillips2011-07-281-12/+7
| | | | | | | Changed forwarders not to generate final methods, which otherwise would induce VerifyErrors anytime the companion class was subclassed and had a method with the same signature. Closes SI-4827, no review.
* Some tweaks to repl thread creation based on sp...Paul Phillips2011-07-273-19/+31
| | | | | | Some tweaks to repl thread creation based on speculation from mark harrah, no review.
* Debug output to help with signature issues.Paul Phillips2011-07-273-3/+16
| | | | | | comments into code comments for reference by me or some lucky future person. No review.
* "Freed the lisp test." Tweaked partest defaults...Paul Phillips2011-07-272-2/+2
| | | | | | "Freed the lisp test." Tweaked partest defaults a little in the hopes that seth tisue is correct in his analysis. No review.
* Fix/workaround for inliner bug uncovered by fin...Paul Phillips2011-07-272-5/+21
| | | | | | | | | | Fix/workaround for inliner bug uncovered by finalizing Option methods. Something in the backend is leaving open but empty blocks in the worklist. Rather than freaking out at the merest mention of an empty block, I quietly remove the empty ones. A proper fix will involve not leaving empty blocks lying around but we're on a schedule here people. Review by dragos.
* Adding the missing ParMap and GenMap methods.Aleksandar Pokopec2011-07-266-3/+253
| | | | | No review.
* Discard empty strings in option position, but n...Paul Phillips2011-07-261-1/+8
| | | | | | Discard empty strings in option position, but not in argument position. Closes SI-4782, no review.
* Enable implicit parameters in the presence of v...Philipp Haller2011-07-252-3/+11
| | | | | | Enable implicit parameters in the presence of view- or context bounds. Fix SI-4839. Review by moors.
* Scaladoc should decode symbolic type alias name.Kato Kazuyoshi2011-07-251-1/+1
|
* Always escape control characters when printing ...Grzegorz Kossakowski2011-07-251-7/+2
| | | | | | | | | | | | Always escape control characters when printing trees. Escaping of control characters should be performed for both Char and String constants. This is useful when printing trees of a program that contains control character as constants. Before that fix, one could get really broken output that was hard to read. Review by extempore.
* Updated documentation for testing.Benchmark.Heather Miller2011-07-241-1/+8
|
* Since trunk seems to be undergoing all kinds of...Paul Phillips2011-07-2327-185/+124
| | | | | | | | | Since trunk seems to be undergoing all kinds of changes of the sort which touch lots of files, the time is ripe for various search/replace improvements which have stacked up. This one is the replacement of all "if (settings.debug.value) log" with "debuglog" since as noted in a recent commit, the inliner will take care of that for you. No review.
* Start of an attempt to abstract above some hard...Paul Phillips2011-07-2323-84/+138
| | | | | | | | Start of an attempt to abstract above some hardcoded name mangling decisions so they can be modified, something we need to do to fix long-standing problems with inner classes. It's not easy. This commit doesn't actually change much, it's primarily setup. No review.
* Reflection refactoring.ōMartin Odersky2011-07-2218-125/+173
|
* Small fix to mirrors in treatment of primitive ...Martin Odersky2011-07-223-4/+7
| | | | | Small fix to mirrors in treatment of primitive types. No review.
* Should not set the parameter name's width on CSS.Kato Kazuyoshi2011-07-221-2/+5
|
* As per discussion documented in SI-1799, brough...Paul Phillips2011-07-216-9/+75
| | | | | | | | | | | | | | | | | | | | | | As per discussion documented in SI-1799, brought back the ProductN traits and synthesized them into case classes. It's -Xexperimental for now because there may be minor implications for existing code which should be discussed. And also because I snuck in another "improvement" but it's probably too dangerous to be touching productIterator directly and it should go into something else. scala> case class Bippy(x: Int, y: Int) defined class Bippy scala> Bippy(5, 10).productIterator res0: Iterator[Int] = non-empty iterator ^^^----- as opposed to Iterator[Any] There is an even better idea available than lubbing the case class field types: it starts with "H" and ends with "List"... Review by oderksy.
* Fixed build problem. No review.Martin Odersky2011-07-211-2/+2
|