summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Part II of the Lazy Vals Saga: Saving bitmap by the Three Musketeers: Byte, ↵Hubert Plociniczak2012-05-041-1/+1
| | | | Int and Long. And Boolean (hey, he also deserves some credit!).
* Part I of the Lazy Vals Saga: Bitmaps are no longer inherited.Hubert Plociniczak2012-05-031-2/+1
|
* Removed a few more @deprecated members.Paul Phillips2012-04-2827-43/+42
| | | | | The ones which remain I'm not removing on purpose, as I know from experience it's more trouble than it's yet worth.
* Another tedious day at Checkfile Ranch.v2.10.0-M3Paul Phillips2012-04-271-1/+1
|
* Merge commit '2bd62d2cfff47882eb72768cfb054638ed0f039b'Paul Phillips2012-04-272-2/+8
|\
| * fixes broken eval testsEugene Burmako2012-04-272-2/+8
| |
* | Revert "Moved ancillary methods off specialized traits."Paul Phillips2012-04-273-8/+8
| | | | | | | | | | | | This reverts commit 1d0372f84f9a7325a47beb55169cc454895ef74b. I forgot about polymorphic dispatch. Have to seek another way.
| |
| \
*-. | Merge commit 'refs/pull/445/head'; commit 'refs/pull/446/head'; commit ↵Paul Phillips2012-04-274-0/+34
|\ \| | | | | | | | | | 'refs/pull/447/head' into develop
| | * fixes SI-5713Eugene Burmako2012-04-274-0/+34
| |/
* / Maybe this will fix the test on windows.Paul Phillips2012-04-271-1/+1
|/
*-. Merge commit 'refs/pull/443/head'; commit 'refs/pull/444/head' into developPaul Phillips2012-04-2617-26/+209
|\ \
| | * SI-5702 Pattern parser halts on starSom Snytt2012-04-2616-26/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In patterns, the parser halts when it sees stars. This means it does not handle infix notation for a case class named "*". This patch uses lookahead to decide whether to parse '_' '*' as a sequence pattern or as the start of infix. (For both normal and error cases, the tokens are always consumed immediately.) Error messages are improved for _* (as a help to learners) and slightly improved recovery helps the parse continue. The entry point for XML patterns is now distinct; otherwise, the change is local to pattern3-simplepattern; the entry point for simplepattern() is unchanged because it is commented "hook for IDE."
| * | SI-5690: no-selector match in function yields functionAdriaan Moors2012-04-261-0/+18
| | | | | | | | | | | | | | | | | | | | | the implicit beta-reduction performed by typedFunction on a Function(.., Match(EmptyTree, ...)) must of course only be done when the selector actually is empty... (yes, typedMatchAnonFun needs to be cleaned up, I know)
* | | A brand new, fast classfile parser.Paul Phillips2012-04-264-0/+116
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Try it: ./tools/dump-class ./build/quick/classes The output is intended to be easy to filter on the command line. This is a starting point for lots of interesting bytecode analysis for which we have waited too long. Example. All generic signatures we produce. // almost 20K classfiles % find build/quick/classes -name '*.class' |wc -l 18519 // fully parsed in 6 seconds tools/dump-class build/quick/classes |grep "^ signature" | wc -l 50802 real 0m6.230s It's designed to be easy to make faster if you don't care about particular classfile bits; you can override those methods to jump forward in the input stream rather than building a structure. For just a little sampling, here are our most frequently repeated name/signature combinations. 194 signature <init> ()V // this one is weird, wonder why there's a generic signature 115 signature $div$colon$bslash <A1:Ljava/lang/Object;>(TA1;Lscala/Function2<TA1;TA1;TA1;>;)TA1; 105 signature applyOrElse <A1:Ljava/lang/Object;B1:Ljava/lang/Object;>(TA1;Lscala/Function1<TA1;TB1;>;)TB1; 103 signature view ()Ljava/lang/Object; 101 signature toSet <B:Ljava/lang/Object;>()Lscala/collection/immutable/Set<TB;>; And the top five name/descriptor combinations. 11170 descriptor <clinit> ()V 10155 descriptor serialVersionUID J 7130 descriptor apply (Ljava/lang/Object;)Ljava/lang/Object; 3028 descriptor apply ()Ljava/lang/Object; 2426 descriptor <init> ()V
* | Trying to set an example in the land of macros.Paul Phillips2012-04-252-6/+6
| | | | | | | | | | | | | | | | Hopefully there are useful examples to be had in here. Please note that you should never be testing "x.size != 0", use isEmpty or nonEmpty. Even if these happen to be small collections, it's not a habit you want to form: size is O(n) on a number of collections. (Most pointedly, Lists.)
| |
| \
| \
| \
*---. \ Merge commit 'refs/pull/439/head'; commit 'refs/pull/440/head'; commit ↵Paul Phillips2012-04-2532-68/+72
|\ \ \ \ | | | | | | | | | | | | | | | 'refs/pull/441/head' into develop
| | | * | diagnostics for SI-5692Eugene Burmako2012-04-253-0/+14
| | |/ /
| * / / removes Expr <-> Tree implicitsEugene Burmako2012-04-2529-68/+58
| |/ /
| | |
| \ \
*-. \ \ Merge commit 'refs/pull/437/head'; commit 'refs/pull/438/head' into developPaul Phillips2012-04-256-5/+80
|\ \ \ \ | |_|/ / |/| | |
| | * | updated tests now matches aren't translated if forInteractiveAdriaan Moors2012-04-252-5/+2
| | | |
| * | | Added a Presentation Compiler test for hyperlinking.Iulian Dragos2012-04-254-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | This test ensures hyperlinking works inside and around pattern matching. The new virtual pattern matcher synthesizes trees that are not properly nested, and whose positions make it impossible to retrieve the correct tree/symbol for a given position. Therefore, the current test is using the old pattern matcher. However, once the virtual pattern matcher is fixed, remove the corresponding line from patmat.flags to re-enable virtpatmat.
* | | | Merge commit 'refs/pull/436/head'Paul Phillips2012-04-252-0/+11
|\ \ \ \ | |_|/ / |/| | |
| * | | fixes SI-5706Eugene Burmako2012-04-252-0/+11
| |/ /
* / / Fix reifier crashing repl.Paul Phillips2012-04-252-0/+31
|/ / | | | | | | | | | | Very first time I tried "reify" in the repl and it crashed. I changed an assert to issue a proper error, as best I could figure out how. We probably need to do a lot more of this.
* | Moved ancillary methods off specialized traits.Paul Phillips2012-04-243-8/+8
| | | | | | | | | | | | | | Moved compose/andThen off Function1, curried/tupled off Function2. Pushed Tuple2 zipped into auxiliary class. Created implicits to plaster over the changes. This drops several hundred classfiles and takes (unoptimized) scala-library.jar from 7.8 Mb to 7.4 Mb.
* | Update checkfile with more backticks.Paul Phillips2012-04-241-1/+1
| |
* | Merge commit 'refs/pull/433/head' into developPaul Phillips2012-04-243-0/+18
|\ \
| * | fixes SI-5704Eugene Burmako2012-04-243-0/+18
| | |
* | | copy BackQuotedIdent trees (don't copy as Ident)Adriaan Moors2012-04-242-0/+13
| | | | | | | | | | | | | | | | | | | | | typer synthesized the wrong isDefinedAt method in typedMatchAnon because a BackQuotedIdent was copied as an Ident, so that the equality check was performed in applyOrElse (since it operates on the original tree), but not in isDefinedAt (since it operates on the copy, which collapsed Ident and BackQuotedIdent)
* | | generate well-formed patterns in parserAdriaan Moors2012-04-242-0/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | val pattern: Type = expr desugared to val x = expr match { case pattern: Type => (var_1, ..., var_N)} but `pattern: Type` is only a valid pattern if `pattern` is an Ident thus, we desugar to val x = (expr: Type) match { case pattern => (var_1, ..., var_N)} ... in this case (see def makePatDef) also, MaybeBoundType now fails on illegal patterns (to defend against similar regressions)
* | Removed FlatArray.Paul Phillips2012-04-234-52/+36
| | | | | | | | We thought better of it.
| |
| \
*-. \ Merge commit 'refs/pull/427/head'; commit 'refs/pull/428/head' into developPaul Phillips2012-04-23206-696/+4521
|\ \ \
| | * | interop between manifests and tagsEugene Burmako2012-04-2326-0/+231
| | | |
| | * | resurrects manifests in their pre-2.10 gloryEugene Burmako2012-04-2357-0/+3246
| | | |
| | * | migrates stdlib and compiler to tagsEugene Burmako2012-04-2382-446/+410
| | | | | | | | | | | | | | | | | | | | * all usages of ClassManifest and Manifest are replaced with tags * all manifest tests are replaced with tag tests
| | * | rethinks tagsEugene Burmako2012-04-2345-401/+785
| | | | | | | | | | | | | | | | | | | | * introduces ArrayTag and ErasureTag * all type tags now feature erasure
* | | | Merge commit 'refs/pull/425/head' into developPaul Phillips2012-04-232-0/+19
|\ \ \ \ | |/ / / |/| | |
| * | | Fix for SI-5471Vojin Jovanovic2012-04-232-0/+19
| | |/ | |/|
* | | Merge commit 'refs/pull/424/head' into developPaul Phillips2012-04-2315-28/+14
|\ \ \ | |_|/ |/| |
| * | minor fixes to reificationEugene Burmako2012-04-2315-28/+14
| |/
| |
| \
*-. | Merge commit 'refs/pull/419/head'; commit 'refs/pull/420/head'; commit ↵Paul Phillips2012-04-225-0/+24
|\ \| | | | | | | | | | 'refs/pull/421/head'; commit 'refs/pull/422/head' into develop
| * | fixes SI-5689Eugene Burmako2012-04-213-0/+14
| |/
| * fixes SI-5680Eugene Burmako2012-04-202-0/+10
| |
* | scala.reflect.api: Reporters => FrontEndsEugene Burmako2012-04-202-3/+3
|/
* fixes testsEugene Burmako2012-04-172-11/+10
|
* assorted stability fixesEugene Burmako2012-04-174-0/+23
|
* adds erasures to concrete type tagsEugene Burmako2012-04-1711-384/+385
|
* Another checkfile update.Paul Phillips2012-04-161-5/+5
| | | | For mr. optimizer and his band of merry privates.
* One more checkfile update.Paul Phillips2012-04-161-1/+1
|
* Merge commit 'refs/pull/408/head'Paul Phillips2012-04-165-55/+61
|\