summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #4593.Iulian Dragos2011-05-172-0/+21
|
* Error reporting when the generated code size ex...Iulian Dragos2011-05-173-4/+31
| | | | | | Error reporting when the generated code size exceeds JVM limits (65,535 bytes per method). Closed #4573. review by extempore.
* Eliminated an unnecessary second traversal of j...Paul Phillips2011-05-173-110/+134
| | | | | | | | Eliminated an unnecessary second traversal of jars by reading classes and packages in the same pass. And rewrote ZipArchive yet again. You'd think I'd get tired of working on this file, but even now I don't think we're quite there. No review.
* Deleting the empty files git is not too cool to...Paul Phillips2011-05-1720-0/+0
| | | | | | Deleting the empty files git is not too cool to remove but which somehow evaded my steely gaze, no review.
* Yet more work on ZipArchive.Paul Phillips2011-05-161-62/+71
| | | | | | it wasn't buying anything. Clearly I won't be happy unless I never encounter this class in the profiler again. No review.
* Renamed scala.reflect.common to scala.reflect.i...Paul Phillips2011-05-1662-73/+73
| | | | | | | Renamed scala.reflect.common to scala.reflect.internal to better emphasize that it is not API. (The brush was overly broad, and some files now need to be rescued from being internal.) No review.
* And the remainder of the scala.reflect refactor...Paul Phillips2011-05-1682-12641/+14879
| | | | | | And the remainder of the scala.reflect refactoring (think of it like a "balloon payment") no review.
* Phase and Error handling code, no review.Paul Phillips2011-05-166-1/+138
|
* Flags and Pickler related code, no review.Paul Phillips2011-05-164-0/+1041
|
* Switched nsc.util to point to reflect.util, no ...Paul Phillips2011-05-167-354/+16
| | | | | Switched nsc.util to point to reflect.util, no review.
* Settings code into common.settings, no review.Paul Phillips2011-05-162-0/+64
|
* Some largely self-contained utility classes int...Paul Phillips2011-05-165-0/+357
| | | | | Some largely self-contained utility classes into common.util, no review.
* This patch and the several to follow represent ...Paul Phillips2011-05-169-8/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch and the several to follow represent an attempt to break up a very large patch from martin which moves much of the compiler's typing infrastructure into the library so that we can utilize the same machinery at runtime that we do at compile time. Said attempt was not very successful, either at maintaining working order while committing incrementally or at subdividing the patch into distinct cohesive units. So let the record show that I tried. -- some notes on the implementation -- This should not be judged as a finished work, but it's a necessary opening step for implementing a reflection API without duplicating much of the compiler. The files in scala.reflect.common are destined for the library (not the compiler, where they are now) but have not yet made the leap to manage compatibility issues. scala.reflect.generic is likely to be replaced by an alias to scala.reflect.common. The fate of scala.reflect.Code and its derived classes is yet to be determined. This first patch contains about the only delta against martin's patch, which is to promote Chars into scala.reflect. Review by odersky.
* Closes 4560. Review by dragos.Martin Odersky2011-05-163-6/+23
|
* Removing two more @bridge methods because they ...Martin Odersky2011-05-161-4/+4
| | | | | | Removing two more @bridge methods because they do not make sense anymore. Review by extempore.
* Removed ill-fated bridge method.Martin Odersky2011-05-161-2/+2
|
* After numerous red herrings, I think I find my ...Paul Phillips2011-05-152-66/+66
| | | | | | | | | After numerous red herrings, I think I find my memory issues arise from an $outer pointer: the inner class's innocuous seeming reference of a hashmap has impressive consequences, especially in partest where it was multiplied by the number of workers. Perhaps I will finally now see the benefits I expect. No review.
* Temporarily sending lisp.scala to be interprete...Paul Phillips2011-05-152-0/+0
| | | | | | | | Temporarily sending lisp.scala to be interpreter.scala's equally memory hungry buddy in pending. References #4512. This should be straightened out imminently, but I will solve this more easily by looking forward, not backward. No review.
* An ill-advised change to an equals method resul...Paul Phillips2011-05-152-34/+31
| | | | | | | An ill-advised change to an equals method resulted in lots and lots and lots of extra DirEntry/FileEntry instances. This should clear up recent memory issues and put us nicely into the black overall. No review.
* Fix for Iterator flattening regression.Paul Phillips2011-05-141-1/+6
| | | | | | | | | | but my theory is that ++ takes a by name argument, but doing a foldLeft and using ++ to join creates a closure which loses the by-nameness. If this theory is correct that's an ugly trap. Not sure how I write a test against this sort of thing? Will take pointers. For now, closes #4582, no review.
* Confusingly, I am restoring the method "getArch...Paul Phillips2011-05-142-1/+4
| | | | | | | | Confusingly, I am restoring the method "getArchive" which has been gone from trunk since February 2010 but is suddenly necessary for the sbt build (as its "compiler-interface" won't compile without it.) I am sure it all makes perfect sense. No review.
* Change Types#narrow to create an existential ra...Paul Phillips2011-05-142-16/+17
| | | | | | | Change Types#narrow to create an existential rather than a refinement type, as the comment indicated was a desirable outcome. (Definitely) review by odersky.
* Some minor cleanups in the inliner, no review.Paul Phillips2011-05-142-17/+15
|
* Removes long-deprecated "for (val x <- ...Paul Phillips2011-05-141-10/+2
| | | | | it's clearly time, but review by odersky.
* Added flatten to Option so Some(Some(x)).flatte...Paul Phillips2011-05-142-1/+4
| | | | | | Added flatten to Option so Some(Some(x)).flatten returns Option[Int] and not Iterable[Int]. No review.
* Fix for view+groupBy closes #4558, no review.Paul Phillips2011-05-142-3/+11
|
* Reverting the rest of it until I can look with ...Paul Phillips2011-05-1210-135/+134
| | | | | Reverting the rest of it until I can look with clear eyes, no review.
* Reverting a little of that last patch, no review.Paul Phillips2011-05-121-1/+13
|
* More optimization.Paul Phillips2011-05-1210-147/+136
| | | | | | (e.g. getCanonicalFile) especially if it's running at startup. No review.
* Fairly ruthlessly optimized ZipArchive.Paul Phillips2011-05-126-314/+160
| | | | | | results from the profiler, but it sure isn't slower and it shed 125 lines or so. No review.
* Regenerated automated tests for inner objects.Iulian Dragos2011-05-113-5802/+1361
| | | | | | single threaded and multi-threaded access, plus private objects. Should catch most possible nesting of objects.
* Renaming the inner objects test file. no review.Iulian Dragos2011-05-112-0/+0
|
* Reverting r24927Antonio Cunei2011-05-111-5/+2
|
* Further narrowing down the applicability of Hub...Martin Odersky2011-05-111-2/+5
| | | | | | Further narrowing down the applicability of Hubert's patch, to reduce the risk we break something else. Review by dragos. Review by plocinic.
* New test. No review.Martin Odersky2011-05-112-0/+24
|
* Closes #4565.Hubert Plociniczak2011-05-116-7/+6935
|
* Closes #4560. Review by dragos.Martin Odersky2011-05-111-13/+30
|
* close #4441. no reviewLukas Rytz2011-05-102-1/+6
|
* Another round of optimization.Paul Phillips2011-05-096-38/+99
| | | | | | | | exciting as the original, but not a bad way to spend a rainy afternoon. Most changes involve files and paths, which are we find exercised rather heavily at startup. This patch takes about 15 seconds off my time to build quick. No review.
* Takes 30+% off the startup time for scala/scala...Paul Phillips2011-05-088-133/+198
| | | | | | | | | | | | | | | | | Takes 30+% off the startup time for scala/scalac with a variety of optimizations pinpointed by tracing method invocations. Frequent guest stars in the parade of slowness were: using Lists and ListBuffers when any amount of random access is needed, using Strings as if one shouldn't have to supply 80 characters of .substring noise to drop a character here and there, imagining that code can be reused in any way shape or form without a savage slowness burn being unleashed upon you and everything you have ever loved, String.format, methods which return tuples, and any method written with appealing scala features which turns out to be called a few orders of magnitude more often than the author probably supposed. This may be only the tip of the iceberg. No review.
* Made -Yno-predef work again, also in the repl.Paul Phillips2011-05-079-47/+77
| | | | | | | do I import" code to notice _root_.scala.Predef too. Moved some of the overly specialized, called-only-once functions in treeInfo inside the one function which needs them. References #1931. No review.
* Good, I got the whitespace wrong, trying to emb...Paul Phillips2011-05-071-2/+1
| | | | | | | Good, I got the whitespace wrong, trying to embed a working checkfile for windows so I don't have to abandon my one javap test. I think I'm ready for NASA. No review.
* My estimation of what will fix fsc on cygwin/wi...Paul Phillips2011-05-071-3/+7
| | | | | | My estimation of what will fix fsc on cygwin/windows, but untested. Review by community.
* Made GenTraversableOnce public.Paul Phillips2011-05-073-4/+4
| | | | | No review.
* Attempting to make the :javap test pass on wind...Paul Phillips2011-05-072-12/+42
| | | | | Attempting to make the :javap test pass on windows, no review.
* Tightened a condition to avoid a self-referenti...Paul Phillips2011-05-063-0/+16
| | | | | | Tightened a condition to avoid a self-referential pattern variable crash. Closes #3392, no review.
* [scaladoc] Fix minor CSS issue. No review.Donna Malayeri2011-05-061-1/+1
|
* Finally figured out what was going on with a ce...Paul Phillips2011-05-0611-28/+133
| | | | | | | Finally figured out what was going on with a certain class of exhaustiveness checking bugs. Hey moors, you can put away your pins, puppets, and magic sauces. Closes #3098, no review.
* Special case Array[Unit] printing in the repl t...Paul Phillips2011-05-063-2/+14
| | | | | | | Special case Array[Unit] printing in the repl to make soc happy. There are still nulls in there, but now we can blissfully pretend they don't exist, until we crash. Closes #4510, no review.
* Help :javap find nested repl-defined objects.Paul Phillips2011-05-063-9/+48
| | | | | no review.