summaryrefslogtreecommitdiff
path: root/sources/scalac/transformer
Commit message (Collapse)AuthorAgeFilesLines
* Removed old Scalac code in sources and various ...Gilles Dubochet2005-12-1817-6008/+0
| | | | | Removed old Scalac code in sources and various other obsolete elements.
* - corrected typomichelou2005-12-051-2/+4
|
* - added empty commentsmichelou2005-11-281-29/+55
| | | | | - corrected indentation
* - updated copyright date.michelou2005-10-111-5/+10
|
* - added comment templates.michelou2005-07-211-5/+46
|
* - added some comments.michelou2005-07-111-4/+29
|
* - replaced some tests with symbol flags.michelou2005-07-111-26/+79
|
* - replaced some tests on symbol flags.michelou2005-07-111-8/+29
|
* Initial support for attributes - only works for...mihaylov2005-05-291-0/+6
| | | | | Initial support for attributes - only works for the scala.serializable attribute
* bugfix of #423buraq2005-05-251-3/+3
|
* - bug fix: include compound types in the comput...schinz2005-05-251-1/+13
| | | | | | | | - bug fix: include compound types in the computation of the set of constructors needed to compute the parents of a class, - bug fix: handle abstract type members in the detection of classes whose parents have to be computed lazily (thanks Philippe)
* - bug fix: transform all isInstance/asInstance ...schinz2005-05-191-1/+2
| | | | | | - bug fix: transform all isInstance/asInstance calls, even those in qualifiers of other such calls
* - bug fix: detection of classes needing lazines...schinz2005-05-181-13/+33
| | | | | | - bug fix: detection of classes needing laziness should now work in all cases
* - in instantiation methods, reuse array of type...schinz2005-05-121-9/+34
| | | | | | - in instantiation methods, reuse array of type parameters whenever possible to save some time and space
* - bug fix: detect types whose instantiation can...schinz2005-05-111-37/+156
| | | | | | - bug fix: detect types whose instantiation can lead to infinite loops, and compile them differently so that their parents are computed lazily
* Moved tail call phase before transmatch.Iulian Dragos2005-04-261-29/+141
|
* - optimisation: treat strongly trivial Scala cl...schinz2005-04-201-64/+62
| | | | | | | - optimisation: treat strongly trivial Scala classes as if they were Java classes: they receive no type constructor and no instantiation method, and their type is a JavaClassType
* - renamed weak* methods in ScalaClassType to is...schinz2005-04-201-2/+2
| | | | | | | | | - renamed weak* methods in ScalaClassType to isNonTrivial*, which better reflects what they do, - moved these methods to ClassType, - made getScalaType return a ClassType, to enable the forthcoming optimisation making strongly trivial classes return a JavaClassType instead of a ScalaClassType
* - renamed getType to getScalaTypeschinz2005-04-191-1/+1
|
* - improved the interaction between arrays and r...schinz2005-04-171-11/+48
| | | | | - improved the interaction between arrays and run time types
* - fixed asInstanceOf when applied to null, so t...schinz2005-04-071-18/+32
| | | | | | | - fixed asInstanceOf when applied to null, so that it works according to the spec, - use a local variable in the "two steps" translation of isInstanceOf, to avoid duplicated evaluation
* - added a cache for JavaClassTypes,schinz2005-04-051-4/+6
| | | | | - extended the notion of triviality to array types
* - do not mix in static membersschinz2005-04-031-1/+6
|
* - use the mini-transformer when targetting the ...mihaylov2005-03-291-25/+27
| | | | | | | | | - use the mini-transformer when targetting the MSIL backend; this phase is not applicable for the MSIL backend; - do not initialize certain values if the mini-transformer is used; this is necessary with the MSIL backend which leaves some uninitilized fields in Definitions that are needed by TypesAsValues.
* - added weakIsInstance method in ScalaClassType...schinz2005-03-281-3/+42
| | | | | | | - added weakIsInstance method in ScalaClassType, which make it possible to slightly optimise instance tests when the type is that of a known class (e.g. x.isInstanceOf[C[T]])
* - introduced isInstanceOf$erased and asInstance...schinz2005-03-262-15/+61
| | | | | | | | | | | | | | | | | - introduced isInstanceOf$erased and asInstanceOf$erased methods, which work on the erased types; things to note: * before TypesAsValues phase, either variant can be used, although the erased ones need to be used with caution, when speed matters; * after TypesAsValues phase, only the erased variants should be used (done automatically by TreeGen); * when run time types are disabled, the TypesAsValues phase is not skipped anymore: it is turned into a trivial phase which rewrites all non-erased instanceof/casts into erased ones.
* - pass null as ancestor code when it is empty, ...schinz2005-03-261-1/+4
| | | | | | - pass null as ancestor code when it is empty, instead of creating an array each time
* - use TypeConstructor.FUNCTION_OUTER as a fake ...schinz2005-03-241-4/+1
| | | | | | - use TypeConstructor.FUNCTION_OUTER as a fake outer instance for classes nested inside functions
* - fixed the ancestors of Object,schinz2005-03-201-19/+14
| | | | | | - rewrote some parts, - added some comments.
* - changed the format of the ancestor code, to s...schinz2005-03-191-46/+66
| | | | | | | - changed the format of the ancestor code, to shrink it (hopefully), - put only non-trivial types in the ancestor cache, pass only strongly - non-trivial parents to instantiation methods,
* - removed NewMember class and all related code,...schinz2005-03-191-43/+14
| | | | | | - removed NewMember class and all related code, all of which was obsolete
* - adapted to be before LambdaLiftschinz2005-03-141-61/+79
|
* - renamed "checkCastability" (in Type and subcl...schinz2005-03-101-42/+42
| | | | | | | - renamed "checkCastability" (in Type and subclasses) to "cast", which is nicer and closer to Java 1.5, - renamed "display" to "ancestors" in run-time types
* - Fixed and added bug 399paltherr2005-02-181-6/+12
|
* - renamed isSameAs to isSameType, to be consistentschinz2005-02-171-32/+28
| | | | | | - use the new parameter to the constructor of ScalaClassType, to avoid a further call to setParents in some cases
* - Added some tests to avoid the inlining of met...paltherr2005-02-081-3/+21
| | | | | | - Added some tests to avoid the inlining of methods already inherited through the super class.
* gone with thisburaq2005-01-286-2531/+0
|
* *** empty log message ***Martin Odersky2005-01-271-0/+4
|
* translated to scalaburaq2005-01-2610-1008/+0
|
* - added support for ThisTypesschinz2005-01-251-0/+10
|
* translated matching.PatternMatcher to Scalaburaq2005-01-245-925/+34
|
* translated most to scalaburaq2005-01-2115-1553/+36
|
* - bug fix: computation of the display fixed for...schinz2005-01-201-22/+29
| | | | | | | | | - bug fix: computation of the display fixed for classes which inherit directly from Java classes, - bug fix: return type of instantiation methods is now correct (ScalaClassType only for static methods, Type otherwise), - bug fix: fixed the work-around for the analyzer bug, which was adding some instantiation methods twice in some cases.
* - bug fix: use correct parent index for classes...schinz2005-01-191-4/+18
| | | | | | - bug fix: use correct parent index for classes inheriting directly from Java classes
* - handle a few more "special" types (All, AllRe...schinz2005-01-171-312/+132
| | | | | | - handle a few more "special" types (All, AllRef, etc.), various bug - fixes
* - bug fix: nested private classes are no longer...schinz2005-01-171-1/+16
| | | | | | | - bug fix: nested private classes are no longer renamed and made public, - introduced a few hacks to work around problems caused by our use of setOwner (to be removed during next redesign)
* - fixed a bug in the "refinements" method (note...schinz2004-12-091-2/+8
| | | | | | - fixed a bug in the "refinements" method (note: all of this will disappear soon, but I just want to keep the history)
* - Removed method Transformer.apply(CompilationU...paltherr2004-12-0713-94/+50
| | | | | | | - Removed method Transformer.apply(CompilationUnit[] - Added method ) Phase.apply(CompilationUnit - Adapted most phases to implement method ) Phase.apply(CompilationUnit instead of Phase.apply(CompilationUnit[] )
* - Removed some obsolete references class TextTr...paltherr2004-12-064-5/+1
| | | | | | - Removed some obsolete references class TextTreePrinter and package printer
* - Removed field units in class Globalpaltherr2004-12-031-20/+7
|