summaryrefslogtreecommitdiff
path: root/test/files/continuations-run
Commit message (Collapse)AuthorAgeFilesLines
* virtpatmat: initial CPS supportAdriaan Moors2012-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typers&patmatvirtualizer have ad-hoc support for dropping annotations in a way that makes the CPS plugins happy... this is not ideal, but unless virtpatmat runs after the plugin phases, I don't see how to solve it running virtpatmat after the CPS plugin would mean the pattern matching evaluation cannot be captured by CPS, so it's not even desirable to move it to a later phase - typedIf must lub annotated types - drop selector.tpe's annotations - drop annots in matchEnd's argument type - deal with annots in casts synth by in virtpatmat (drop them from type arg to asInstanceof, recover them using type ascription) - workaround skolemize existential dropping annots CPS is the main reason why typedMatchAnonFun is not used anymore, and PartialFunction synthesis is moved back to uncurry (which is quite painful due to labeldefs being so broken) we can't synth partialfunction during typer since T @cps[U] does not conform to Any, so we can't pass it as a type arg to PartialFunction, so we can't type a cps-transformed PF after the CPS plugin, T @cps[U] becomes ControlContext[...], which is a type we can pass to PartialFunction virtpatmat is now also run until right before uncurry (so, can't use isPastTyper, although it means more or less the same thing -- we don't run after uncurry) the main functional improvements are in the selective ANF transform its treatment of labeldefs was broken: for example, LabelDef L1; LabelDef L2 --> DefDef L1; L1(); DefDef L2; L2() but this does not take into account L1 may jump over L2 to another label since methods always return (or fail), and the ANF transform generates ValDefs to store the result of those method calls, both L1 and L2 would always be executed (so you would run a match with N cases N times, with each partial run starting at a later case) also fixed a couple of weird bugs in selective anf that caused matches to be duplicated (with the duplicate being nested in the original) since label defs are turned into method defs, and later defs will be nested in the flatMap calls on the controlcontext yielded by earlier statements, we reverse the list of method definitions, so that earlier (in the control flow sense) methods are visible in later ones selective CPS now generates a catch that's directly digestible by backend
* Fix for continuations issue with match blocks.Paul Phillips2012-04-052-0/+31
| | | | Don't type pattern trees with annotations still attached.
* Fix for continuations issue.Paul Phillips2012-04-052-0/+55
| | | | | | | | Avoid explicit type arguments which don't conform to bounds where they could be successfully inferred. I had to disable one "neg" test which is no longer neg. Can anyone clue me in as to whether it is important?
* Fix for cps regression. Closes 5538. Closes 5445.Tiark Rompf2012-03-022-0/+51
|
* fixes SI-5506. better cps type propagation for polymorphic and ↵Tiark Rompf2012-02-192-0/+65
| | | | multi-argument list methods.
* improve cps handling of if-then-else. no review.Tiark Rompf2011-11-294-0/+69
|
* Begone t1737...Hubert Plociniczak2011-11-0222-90/+90
|
* applying patch provided by Topher, fixes #3501.Tiark Rompf2011-08-232-0/+20
|
* Rolled partest back to r21328.Paul Phillips2010-05-0653-0/+687
| | | | | | | | changes necessary to plug it back in while preserving everything which has happened since then in tests and such, but we should be the lookout for overreversion. Review by phaller (but as a formality, I don't think it requires direct review.)
* If I work on this patch any longer without chec...Paul Phillips2010-04-0553-687/+0
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* improved cps transform of partial functions.Tiark Rompf2010-04-032-0/+17
|
* closes 2864.Tiark Rompf2010-03-298-0/+130
|
* closes #3199. review by community.Tiark Rompf2010-03-224-0/+33
|
* added support for continuations in try/catch bl...Tiark Rompf2010-03-164-0/+79
| | | | | | added support for continuations in try/catch blocks. review by community.
* moved the continuations plugin into trunk.Tiark Rompf2010-03-1135-0/+428