| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
We were relying on an internal API that no longer exists.
We also need to tweak the way our tests infer scalaBinaryVersion.
|
| |
|
| |
|
|\
| |
| | |
Liveness analysis to avoid memory retention issues
|
| | |
|
| |
| |
| |
| |
| | |
- Zero out fields of type Any
- Zero out fields of value class type
|
| |
| |
| |
| |
| |
| |
| | |
- Adds a hook that lets a derived macro insert additional code
when zero-ing out a lifted field.
- Adds a variant of the `AsyncId` macro that logs zeroed-out fields.
- Adds a test using this mechanism
|
| |
| |
| |
| |
| | |
- A missing condition could cause an infinite loop
- Various clean-ups
|
|/
|
|
|
|
|
|
| |
- Iterative, backwards data-flow analysis
- Make sure fields captured by nested defs are never zeroed out.
This is done elegantly by declaring such fields a being live
at the exit of the final state; thus, they will never be
zeroed out.
|
|\
| |
| | |
Various clean-ups and docs
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
OLD:
case (throwable @ _) if NonFatal.apply(throwable) => {
{
stateMachine$1.this.result.complete(Failure.apply[Nothing](throwable));
()
};
()
}
NEW:
case (throwable @ _) if NonFatal.apply(throwable) => {
stateMachine$1.this.result.complete(Failure.apply[Nothing](throwable));
()
}
|
| | |
|
|/ |
|
|\
| |
| | |
Handle while loops as expressions in ANF transform.
|
|/
|
|
|
|
|
| |
Append a `()`, as we do for `Unit` returning `if`-s and `try-s`
We don't currently support `await` in try/catch, otherwise I'd
write tests for that case, too.
|
|
|
| |
Also set the start date at that of oldest commit.
|
|
|
|
|
|
| |
- move to maven group org.scala-lang.modules / scala-async
- add config to publish to sonatype OSS
- generate a scala-async.properties files (ala the scala-parser-combinators build)
|
|\
| |
| | |
Use @uncheckedBounds to avoid introducing refchecks errors …
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
... in code that would otherwise have smuggled through these
slack LUBs in the types of trees but never in a TypeTree.
More details in SI-7694.
Fixes #29
|
| |
| |
| |
| |
| | |
SBT's scalaHome handling doesn't pick up the local continuations
plugin.
|
| |
| |
| |
| |
| |
| |
| | |
Which correctly substitutes scala-reflect.jar when using scalaHome
to test out the plugin with a local version of Scala.
Also updates to a released version of the junit-interface SBT TestFramework.
|
| |
| |
| |
| |
| | |
These are are at odds with the junit-interface SBT test framework
under SBT 0.13.+, and appear to be superfluous.
|
|\ \
| | |
| | | |
Collection of clean-ups
|
|/ /
| |
| |
| |
| |
| | |
- removed outdated comments in ANF transform
- added a few comments
- removed some unnecessary imports
|
|\|
| |
| | |
Typeful transformations
|
| |
| |
| |
| | |
Tweak the way we set tpe = Unit in matches.
|
| |
| |
| |
| | |
Obsolete now that we carry all the types around.
|
| | |
|
| |
| |
| |
| | |
Avoids runtime errors like: "java.lang.Double cannot be cast to scala.runtime.BoxedUnit"
|
| | |
|
| | |
|
| |
| |
| |
| | |
This case already works.
|
| | |
|
| |
| |
| |
| |
| | |
Also support AsyncId.async[Nothing], which was triggering a NPE
in the generated `null.asInstanceOf[Nothing]`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Make sure all trees are positioned
- Mark range positions for synthetic code as transparent to allow
some wiggle room for overlapping ranges.
Enables -Yrangepos for our test suite. We can't add it for
the entire build until the fix for SI-7649 lands in the compiler.
|
| |
| |
| |
| |
| | |
When convering If and Match nodes to ANF, set the type to Unit.
Otherwise, erasure might end up casting BoxedUnit to a real type.
|
| |
| |
| |
| |
| | |
If we intend to keep CPS fallback around for any length of time
it should probably move there too.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Avoid reset + retypecheck, instead hang onto the original types/symbols
- Eliminated duplication between AsyncDefinitionUseAnalyzer and ExprBuilder
- Instead, decide what do lift *after* running ExprBuilder
- Account for transitive references local classes/objects and lift them
as needed.
- Make the execution context an regular implicit parameter of the macro
- Fixes interaction with existential skolems and singleton types
Fixes #6, #13, #16, #17, #19, #21.
|
| |
| |
| |
| | |
This allows us to cross build against 2.10.x and 2.11.x.
|
|/
|
|
|
|
|
|
|
|
|
| |
- Update to SBT 0.12.4
- Update to Scala 2.10.2
- Provide a means to disable test compilation (other then TreeInterrogation)
This is handy when doing major renovations to the macro implementation.
- Explicitly depend on scala-compiler (we'll need that in the next commit)
- Declare the dependencies on scala-{reflect, compiler} as "provided" to avoid
adding them the runtime classpath of upstream projects. They are only needed
at compile time.
|
|\
| |
| | |
call setSymbol only on outermost Apply for multi-arg-list applications
|
|/
|
|
| |
fixes a typo in 5a0b1918
|
|\
| |
| | |
minor cleanups accumulated while reading the code
|
|/ |
|
|\
| |
| | |
Mark `await` as @compileTimeOnly
|
|/
|
|
|
|
| |
Rather than as @deprecated.
This commit means we can no longer build against 2.10.0.
|