summaryrefslogtreecommitdiff
path: root/sources/scalac
Commit message (Collapse)AuthorAgeFilesLines
* - added a cache for JavaClassTypes,schinz2005-04-053-4/+16
| | | | | - extended the notion of triviality to array types
* Fixed the implicit coercion of Enums to their u...mihaylov2005-04-051-3/+2
| | | | | Fixed the implicit coercion of Enums to their underlying type
* - 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.
* Don't emit widening casts.mihaylov2005-03-291-1/+2
|
* - added weakIsInstance method in ScalaClassType...schinz2005-03-283-3/+51
| | | | | | | - 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]])
* - changed pattern matcher to use the erased ver...schinz2005-03-271-8/+14
| | | | | | | | | | | | | | | | | | | - changed pattern matcher to use the erased versions of asInstanceOf when possible, to gain some speed when run time types are enabled; i.e. instead of generating code like this: if (x.isInstanceOf[List[Int]]) { val temp$ = x.asInstanceOf[List[Int]]; ... } the pattern matcher now generates code like that: if (x.isInstanceOf[List[Int]]) { val temp$ = x.asInstanceOf$erased[List[Int]]; ... }
* - introduced isInstanceOf$erased and asInstance...schinz2005-03-269-26/+89
| | | | | | | | | | | | | | | | | - 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-243-4/+10
| | | | | | - 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
* - moved TypesAsValues before LambdaLiftschinz2005-03-141-5/+5
|
* - adapted to be before LambdaLiftschinz2005-03-141-61/+79
|
* - added a new kind of literal, SYMBOL_NAME, whi...schinz2005-03-141-1/+9
| | | | | | | - added a new kind of literal, SYMBOL_NAME, which is a string literal whose value is the name of the attached symbol - modified mkLocalRef to handle static members
* - added a new kind of literal, SYMBOL_NAME, whi...schinz2005-03-144-0/+20
| | | | | | - added a new kind of literal, SYMBOL_NAME, which is a string literal whose value is the name of the attached symbol
* - added hasStaticAttribute methodschinz2005-03-141-1/+5
|
* - renamed "checkCastability" (in Type and subcl...schinz2005-03-103-48/+48
| | | | | | | - 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
* - Correctly differentiate between methods that ...mihaylov2005-03-011-1/+3
| | | | | | - Correctly differentiate between methods that differ only in the return type
* - Give private inner classes assembly visibility.mihaylov2005-03-011-1/+5
| | | | | | | in the interface of a Scala class and if they are private they are not accessible from the implementation class. Giving them assembly visibility solves the problem.
* - Fixed and added bug 399paltherr2005-02-181-6/+12
|
* - added EMPTY_ARRAYschinz2005-02-171-0/+1
|
* - 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 SCALACLASSTYPE_EMPTYARRAY (for run time...schinz2005-02-171-0/+9
| | | | | - added SCALACLASSTYPE_EMPTYARRAY (for run time types)
* - updated copyright year.michelou2005-02-091-2/+2
|
* - Added search methodspaltherr2005-02-091-65/+220
| | | | | - Fixed lookup of symbols (bug 396)
* - 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.
* - Added the following methods: getMainOwner, ge...paltherr2005-02-021-7/+116
| | | | | | | - Added the following methods: getMainOwner, getMainClassOrNone, getEnclosingPackageClassOrNone, getSourceDirectoryOrNull, getSourceFileOrNull, getUnitOrNull
* - Added SOURCEFILE attribute decodingpaltherr2005-02-011-0/+5
|
* - Added origin to loaded symbols.paltherr2005-02-014-9/+22
|
* - Added method getOrigin and setOriginpaltherr2005-02-011-0/+36
|
* - Added SymbolOriginpaltherr2005-02-011-0/+52
|
* - Changed AbstractFileReader to store the abstr...paltherr2005-02-012-5/+5
| | | | | | - Changed AbstractFileReader to store the abstract file instead of its path.
* gone with thisburaq2005-01-286-2531/+0
|
* - Split the Reporter class into a Reporter inte...paltherr2005-01-272-8/+10
| | | | | | - Split the Reporter class into a Reporter interface and an AbstractReporter and a ConsoleReporter class.
* *** empty log message ***Martin Odersky2005-01-271-0/+4
|
* translated to scalaburaq2005-01-2610-1008/+0
|
* - Replaced start and stop in Global by a timer.paltherr2005-01-253-33/+16
|
* - Added a dummy "codegen" phase to enable/disab...paltherr2005-01-251-0/+6
| | | | | - Added a dummy "codegen" phase to enable/disable code generation.
* - added support for ThisTypesschinz2005-01-251-0/+10
|
* translated matching.PatternMatcher to Scalaburaq2005-01-246-925/+35
|
* little fixesburaq2005-01-211-0/+2
|
* 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)
* - added a few methods and fields related to run...schinz2005-01-172-12/+54
| | | | | - added a few methods and fields related to run time types
* - Introduced new compilation looppaltherr2005-01-033-32/+159
|