summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* BigDecimal adjustments.Paul Phillips2011-09-283-7/+48
| | | | | | More sensible use of MathContext, plus some BigDecimal tests. Contributed by Erik Osheim. Closes SI-4981, no review.
* Hand specialized SettingValue.Paul Phillips2011-09-283-22/+28
| | | | | | | | | | | | | | | Discovered every time we do something like if (settings.debug.value) the boolean is coming out of a box. How uncouth. To fix this, I had to make the storage abstract, so concrete setting types have to declare the storage personally. This seems a small price to pay. I tried to use specialization but I think it's impossible to get the type parameter and the abstract type to agree with one another when mr. invariant var is the object of your affection, without scalac putting the kibosh on the whole adventure. No review.
* Pulling wool over ant's eyes.Paul Phillips2011-09-281-0/+3
| | | | | No review.
* More consistent usage of atPhase.Paul Phillips2011-09-283-28/+27
| | | | | | | | | | Some improvables I noticed while working on a fingerprint phase. This eliminates fifty classes from the compiler. My new hobby is reading the whole bytecode diff anytime I'm touching something like unsafeTypeParams where I know someone is liable to start praying for my network access to fail, so I hope knowing that fills you with new confidence. Anyway, review by moors.
* Fixes #4895.Aleksandar Pokopec2011-09-283-2/+28
| | | | | | | The size map size computation for parallel hash sets was invalid. No review.
* Oops, can't even revert right.Paul Phillips2011-09-281-1/+1
| | | | | No review.
* Put back the XXX line in partest.Paul Phillips2011-09-281-1/+2
| | | | | | Classpaths and partest, soon to be jointly responsible for one or more tragedies. No review.
* Fix for classpaths.Paul Phillips2011-09-283-6/+3
| | | | | Not sys.props("CLASSPATH"), sys.env("CLASSPATH"). No review.
* Fixes #4894.Aleksandar Pokopec2011-09-283-5/+37
| | | | | | | Adds Growable and Shrinkable to parallel maps and sets. No review.
* Adding latest failures to code.scala test.Martin Odersky2011-09-282-3/+11
|
* Fixed infinite loop in reification reported by ...Martin Odersky2011-09-282-8/+9
| | | | | Fixed infinite loop in reification reported by Paul.
* Added Paul's failing scenario to test file.Martin Odersky2011-09-281-1/+12
|
* More fixes to reflection; cleaned up output.Martin Odersky2011-09-286-19/+23
|
* Removed a log file from the test dir.Aleksandar Pokopec2011-09-271-6/+0
| | | | | No review.
* Fixes #4716.Aleksandar Pokopec2011-09-274-7/+39
| | | | | | | | | | | During the generation of the specialized method implementation, local lazy vals in specialized classes were getting duplicated and assigned new (different) names. Also, the identifiers referring to them were not getting updated. This is fixed now. Further, the mutable flag is no longer getting set for a lazy val during method body duplication. Review by Dragos.
* Made needsJavaSig method public so that it can ...Micro Dotta2011-09-271-1/+1
| | | | | | Made needsJavaSig method public so that it can be used from the IDE side. No review.
* Correcting resolution of top-level objects in r...Martin Odersky2011-09-274-9/+17
| | | | | Correcting resolution of top-level objects in reflection.
* Added new test file for reification/relfection,...Martin Odersky2011-09-271-0/+33
| | | | | | Added new test file for reification/relfection, which does not work yet under partest, but works when run individually.
* removed redundant testMartin Odersky2011-09-271-20/+0
|
* more fixes to reflection.Martin Odersky2011-09-274-12/+12
|
* Stripped a bunch of hostile code.Paul Phillips2011-09-261-16/+2
| | | | | Closes SI-5026, no review.
* ProductN, and method synthesis toolbox.Paul Phillips2011-09-2612-320/+422
| | | | | | | | | | | | | | | | | | | | | | - Finished giving case classes a ProductN parent, and flipped it on. The "finish" part involved not breaking existing code where case classes manually extend the appropriate ProductN. (Like, Tuple 1-22.) - Generalized most of SyntheticMethods to ease method creation and class manipulation in general. - Fixed bugs related to the above, like the fact that this used to be a compile error: scala> case class Foo() extends Serializable <console>:28: error: trait Serializable is inherited twice case class Foo() extends Serializable ^ It feels like there's a better way to eliminate the duplicate parents, but after spending a lot of time chasing my tail in that peril-fraught zone between namer and typer, I don't see an easy path to improve on it. Closes SI-1799. For that modification to Typers, review by odersky.
* More fixes to reflection and code lifting.Martin Odersky2011-09-2610-31/+75
|
* Disable currently failing pos/code.scala.Hubert Plociniczak2011-09-261-0/+0
|
* Fixes #4351.Aleksandar Pokopec2011-09-263-11/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added an "Abstract" method info to the specialized phase, which denotes that no implementation should be generated. Previously: trait A[@specialized(Boolean) T] { def foo: T } used to generate: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp = this.foo } which caused cyclic calls because of linearization rules when several traits are mixed together. Now, the following is generated: trait A$mcZ$sp extends A[Boolean] { def foo$mcZ$sp: Boolean } Review by dragos.
* Added test for the completion problem in the pr...skyluc2011-09-264-0/+53
| | | | | | Added test for the completion problem in the presentation compiler reported in the scala-ide ticket 1000620.
* Making toolboxes more useful.Martin Odersky2011-09-261-5/+11
|
* Added missing file.Martin Odersky2011-09-261-0/+48
|
* Getting liftCode to work.Martin Odersky2011-09-2512-274/+214
|
* updated man pages, fixed svn props, did some cl...michelou2011-09-2513-107/+404
| | | | | updated man pages, fixed svn props, did some cleanup
* Cleanup in aisle superaccessors.Paul Phillips2011-09-241-75/+61
| | | | | Efficiency plus, redundancy minus, no review.
* Handling Freevars in Importers and discovering ...Martin Odersky2011-09-236-77/+93
| | | | | | Handling Freevars in Importers and discovering whole new classes of errors in Liftcode.
* Now correctly handles moduleclasses in ImportersMartin Odersky2011-09-233-11/+11
|
* Back to square one.Hubert Plociniczak2011-09-2329-2349/+927
| | | | | | | | | | | | | | Current design of error trees complicates the design of reflection library, and introduces sometimes unnecessary boilerplate and since I do not want to stall that work I am reverting all the changes related to error trees. A different design is currently under consideration but work will be done on separate branch on github. Revisions that got reverted: r25705, r25704 (partially), r25673, r25669, r25649, r25644, r25621, r25620, r25619 Review by odersky and extempore.
* Fixing isTrivial in NullaryMethod.Paul Phillips2011-09-221-40/+14
| | | | | | | | | | | | 1) Made NullaryMethodType a SimpleTypeProxy. (This is incidental to isTrivial, it just seemed like the right thing to do.) 2) Modified implementations of isTrivial for MethodType and NullaryMethodType to only be considered trivial if there are no annotations on the return type. This means asSeenFrom will not be skipped and the continuations plugin will work properly. There are a lot of other angles one could take, so review by moors, rompf.
* Removed devirtualize.Paul Phillips2011-09-2218-736/+70
| | | | | | | It was time. Removed unused flags and devirtualize detritus. Cleaned up flags a bit further. Fixed the contents of phaseNewFlags in those places where it was inaccurate. No review.
* fixes variance of param in type constructorPaul Phillips2011-09-221-5/+3
| | | | | | | | when determining in which variance position a symbol occurs in a type, there's no need to look at the args of a type constructor, since it doesn't have any therefore, the symbol could not occur in a variance position corresponding to the typeref's (non-existent) type arguments
* more tweaks to symbol importing; not done yetMartin Odersky2011-09-222-8/+17
|
* Corrected resetErrorBits in TreesMartin Odersky2011-09-221-1/+3
|
* More performant encoding of tree errors.Paul Phillips2011-09-218-69/+42
| | | | | | | | | | Stole two bits from Tree#id to record whether a tree contains an error tree and whether its subtrees have been checked. This leaves us with only a single gigatree of headroom for replaying trees in the presentation compiler. Alert the media. Review by odersky.
* Fixed issue with warnings in IDE.Paul Phillips2011-09-211-16/+16
| | | | | | "Pure expression in statement position" is hopefully a lot quieter now. Review by dragos.
* Removed duplicate class.Martin Odersky2011-09-211-300/+0
|
* Started work on compiler toolbox that can compi...Martin Odersky2011-09-215-5/+331
| | | | | | Started work on compiler toolbox that can compile reflect trees at runtime.
* Removed dead packageMartin Odersky2011-09-219-195/+38
|
* Added module for importing trees and symbol tab...Martin Odersky2011-09-212-0/+305
| | | | | Added module for importing trees and symbol tables from another universe
* fixed svn props and scaladoc tags, did some cle...michelou2011-09-2017-119/+92
| | | | | fixed svn props and scaladoc tags, did some cleanup
* Two argument asserts please.Paul Phillips2011-09-201-65/+69
| | | | | No review.
* Changes to Liftcode to use new reflection seman...Martin Odersky2011-09-207-31/+61
| | | | | | Changes to Liftcode to use new reflection semantics, where a compiler uses type checking.
* Fixes #4417.Aleksandar Pokopec2011-09-203-5/+36
| | | | | Review by Dragos.
* Rooting out mismatched zips.Paul Phillips2011-09-1912-140/+191
| | | | | | | | | | I added local logging to zip and zipped and listened for who was dropping things on the floor. Everything in this commit stems from that. Sometimes the fix was uncertain and I sprinkled some logging. If you've been hanging back with lots of internals knowledge waiting for the right commit to review, this would be a good one. But since knowledgeable people are hard to find, I'll go with review by moors.