aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add primitive ClassTags to DottyPredefDmitry Petrashko2015-05-051-0/+16
| | |
| * | Merge all VC prototypes into single fileDmitry Petrashko2015-05-0510-540/+474
| | |
| * | Implement implicit defs that return class tags for value classes.Dmitry Petrashko2015-05-059-0/+18
| | |
| * | Introduce VCArray.clone in scala.Dmitry Petrashko2015-05-052-10/+2
| | | | | | | | | | | | It can be done with non-abstract rhs of method.
| * | It seems one cannot define clone member in scala trait. Do it in Java.Dmitry Petrashko2015-05-052-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | [error] /Users/dark/workspace/dotty/src/dotty/runtime/vc/VCPrototype.scala:10: overriding method clone in class VCArrayPrototype of type ()Object; [error] method clone in class Object of type ()Object has weaker access privileges; it should be public; [error] (Note that method clone in class VCArrayPrototype of type ()Object is abstract, [error] and is therefore overridden by concrete method clone in class Object of type ()Object) [error] abstract class VCArrayPrototype[T <: VCPrototype] extends Object with Cloneable {
| * | Implement clone on VCArrays without mutable field.Dmitry Petrashko2015-05-059-47/+62
| | |
| * | Implement clone for VCArrays.Dmitry Petrashko2015-05-0511-9/+66
| | | | | | | | | | | | Unfortunately needed to sacrifice the immutability of inner field.
| * | Extend methods of ScalaRuntime to support arrays of value classes.Dmitry Petrashko2015-05-051-1/+8
| | |
| * | Change VCArray naming scheme.Dmitry Petrashko2015-05-059-19/+19
| | |
| * | Fork ScalaRuntime to support arrays of value classes.Dmitry Petrashko2015-05-051-0/+363
| | |
| * | Remove VCCompanionPrototype: it is not used.Dmitry Petrashko2015-05-051-4/+0
| | |
| * | Add array creations to class tags of value classes.Dmitry Petrashko2015-05-059-0/+19
| | | | | | | | | | | | Works as Array[T] is erased to Object.
| * | implement templates for value class companions.Dmitry Petrashko2015-05-059-2/+47
| | | | | | | | | | | | Decreases the size of companion of case value class to 1/8 of it's original size.
| * | Add Value classes and array prototypes.Dmitry Petrashko2015-05-0510-0/+401
| | | | | | | | | | | | | | | | | | | | | Making actual value classes extend this prototypes serves two goals: - This is a basis for implementing arrays of value classes. - Having underlying final in those glasses makes all unbox methods monomorphic and final. - this decreases size of an empty case-class to 1/3 of previous size.
| * | Allow disabling value classes entirely from command line.Dmitry Petrashko2015-05-052-0/+2
| | |
* | | Fix unset tree positionAlexSikia2015-05-111-1/+1
| | | | | | | | | | | | Debugs some cases where `tree.pos` wasn't initialised properly.
* | | Re-enable testsMartin Odersky2015-05-111-2/+0
| | | | | | | | | | | | | | | Most tests were still commented out in last merge. Also, an outdated comment in TreeTypeMap was removed.
* | | Companion methods are not real methodsGuillaume Martres2015-05-092-3/+5
| | |
* | | rename isSourceMethod to isRealMethod, the previous name was inaccurateGuillaume Martres2015-05-096-9/+13
| | |
* | | Merge pull request #550 from dotty-staging/lazy-vals-fixesodersky2015-05-094-23/+37
|\ \ \ | | | | | | | | Various fixes to LazyVals.
| * | | Add a postcondition to constructors.Dmitry Petrashko2015-05-081-0/+11
| | | |
| * | | Workaround #548.Dmitry Petrashko2015-05-081-1/+4
| | | |
| * | | LazyVals: inject Offset definitions in Template.Dmitry Petrashko2015-05-081-13/+13
| | | | | | | | | | | | | | | | Otherwise Constructors is not able to see them and they get lost.
| * | | LazyVals: fix initialisers of local lazy vals to be called.Dmitry Petrashko2015-05-081-4/+4
| | | |
| * | | Fix printing of Constant(Claz), ie getClass[Claz]Dmitry Petrashko2015-05-081-5/+5
| | | | | | | | | | | | | | | | Previous scheme did not work after erasure.
* | | | Merge pull request #551 from dotty-staging/fix/#547-overloaded-varargsDmitry Petrashko2015-05-091-2/+6
|\ \ \ \ | | | | | | | | | | Fix #547: Vararg overload
| * | | | Fix #547: Vararg overloadMartin Odersky2015-05-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | When comparing to types in isAsSpecific, onvert repeated parameters to their underlying type only if both types are vararg methods. This mimics scalac behavior.
* | | | | Merge pull request #543 from dotty-staging/compile-dottyodersky2015-05-0910-43/+99
|\ \ \ \ \ | |_|/ / / |/| | | | Make dotty compile backend.
| * | | | Reload denotations that are not defined at current phaseMartin Odersky2015-05-083-10/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up to now a NotDefinedHere exception was thrown if a denotation was not defined at the current phase, but was defined elsewhere in the current run. However, if the denotation is a SingleDenotation or MultiDenotation it is possible that the particular Single- or Multi-Denotation was not computed at the current phase, but the underlying SymDenotation is valid. With the changes in this commit, we reaload the denotation as a second try.
| * | | | PatternMatcher: fix bug with undefined variable inside huge patterns.Dmitry Petrashko2015-05-081-3/+3
| | | | |
| * | | | Remove NonExistentTree.Dmitry Petrashko2015-05-081-3/+2
| | | | |
| * | | | Workaround dotty deviation in for loop patterns.Dmitry Petrashko2015-05-081-5/+10
| | | | |
| * | | | Address some of dotty deviations in backend.Dmitry Petrashko2015-05-082-2/+2
| | | | | | | | | | | | | | | | | | | | Implicit vals need explicit type, anonymous classes are widened.
| * | | | Do not use deprecated procedure syntax in GenBCode.Dmitry Petrashko2015-05-082-16/+21
| | | | |
| * | | | Remove debug printlnMartin Odersky2015-05-081-1/+0
| | | | |
| * | | | Drop the requirement that extractors with `get` must implement ProductMartin Odersky2015-05-081-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to require that the result type of an extractor `get` is a product, or else the type of the `get` itself would be taken as the result type of the unapply. This is now relaxed so that we automatically select with _1, _2, ... as soon as there are multiple argument patterns, and (1) the result type is not a Seq, (2) the number of consecutive product conselectors matches the number of arguments.
| * | | | Make isTerm/isType not force the denotation of a symbols defined in this run.Dmitry Petrashko2015-05-081-2/+6
| | | | | | | | | | | | | | | | | | | | See discussion in #544
| * | | | Rename localClasses -> definedClassesMartin Odersky2015-05-071-3/+3
| | | | |
| * | | | Make isTerm/isType not force the denotation of a symbol to be up-to-date.Martin Odersky2015-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symbols never change betwene terms and types. So we do not need to the current denotation to decide what they are. Less forcing -> less potential for cyclic references.
| * | | | Fix #536 - only load member classes of classes that are currently compiled.Martin Odersky2015-05-072-2/+20
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | It seems wasteful to load the member classes even of classes that are not currently compiled. It also makes us vulnerable to any misinterpretation of Java file formats. In th particular case of #536, we parsed a class an anonymous Collection$1 which was referring to the type parameter of its enclosing class, but was not diagnosed as an inner class of the enclosing class.
* | | | Merge pull request #542 from dotty-staging/fix/#540-unbounded-generic-arrayDmitry Petrashko2015-05-081-4/+5
|\ \ \ \ | |_|/ / |/| | | Fix #540 - unbounded array test for wildcard array arguments
| * | | Fixed foc of isUnboudnedGenericArrayMartin Odersky2015-05-081-3/+3
| | | |
| * | | Remove debug printlnMartin Odersky2015-05-061-1/+0
| | | |
| * | | Fix #540 - unbounded array test for wildcard array argumentsMartin Odersky2015-05-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Arrays with wildcard arguments such as Array[_ <: Foo] where Foo is a universal trait are now diagnosed as unbounded generic arrays and are erased to Object.
* | | | Merge pull request #541 from dotty-staging/fix/#537-extractorsDmitry Petrashko2015-05-061-3/+6
|\ \ \ \ | |_|/ / |/| | | Drop the requirement that extractors with `get` must implement Product
| * | | Remove debug printlnMartin Odersky2015-05-051-1/+0
| | | |
| * | | Drop the requirement that extractors with `get` must implement ProductMartin Odersky2015-05-051-3/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | We used to require that the result type of an extractor `get` is a product, or else the type of the `get` itself would be taken as the result type of the unapply. This is now relaxed so that we automatically select with _1, _2, ... as soon as there are multiple argument patterns, and (1) the result type is not a Seq, (2) the number of consecutive product conselectors matches the number of arguments.
* / / Allow to compile root import classes without special option.Martin Odersky2015-05-053-10/+12
|/ / | | | | | | | | Can now compile Predef/DottyPredef without -Yno-import option. Achieved by making some parts of imports more lazy.
* | Merge pull request #534 from dotty-staging/fix/computeDenotodersky2015-05-053-24/+34
|\ \ | |/ |/| Fix #518 - compute denotations
| * Rename isWeakRef -> isTightPrefixMartin Odersky2015-05-051-7/+9
| | | | | | | | | | isWeakRef was confusing because this has nothing to do with weak pointers.