| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
of deadlocks: when the PC was asked to shutdown, all work items in the
work queue would be left pending, and no response would be set.
This commit attempts to clean up a bit better: a shutdown request clears
the work queue and all pending loaded&typed or parsed-entered requests
by setting their responses to 'MissingResponse'. review by odersky.
|
| |
|
|
|
|
|
|
| |
Twist to make crashes more robust :-) (by avoiding exceptions that get
raised when printing debug output in erasure).
|
| |
|
|
|
|
|
|
|
| |
Added extraneous test where classes are verified by loading them in
non-boot classloaders one at a time. These are not wired into the
standard workflow, but available optionally. Review by rytz
|
| |
|
|
|
|
|
|
| |
Added package object support to reflection framework. Removed debug
output and made some speed improvements.
|
| |
|
| |
|
|
|
|
|
|
| |
Another bit of stray debugging output involving good old symbol #431.
Oh, symbol #431, why must you haunt our dreams. No review.
|
|
|
|
|
| |
Fixing up a few instances of suboptimal reversing, no review.
|
|
|
|
|
|
| |
Replaced various now-unnecessary casts with straight getClass calls.
Closes SI-4780, no review.
|
| |
|
| |
|
|
|
|
|
|
| |
Removing debug output that slipped into main compiler and broke the
build.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out that `liftcode` phase must be always
executed or other phases will fail. Specifically,
at the moment `explicitouter` seems to depend on
`liftcode`. One can observe compiler crash by
compiling scala/Array.scala file without `liftcode`
included. At `explicitouter` phase compiler will
crash with assertion error saying it cannot
lift some code.
Review by odersky
|
|
|
|
|
| |
Some kind of scaladoc quoting fix from the sbt guy, no review.
|
|
|
|
|
|
|
| |
Recent icode checking tests were leaving a bit of a mess in the
filesystem. Taught them to clean up after themselves. I knew I'd pick up
a few useful tricks from my kids. No review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Made -Xprompt more useful, less crashy and more open to showing you the
stack trace without aborting. For example, the following would resume
compilation after showing the trace.
% scala -deprecation -Xprompt -nc -e 'case class Foo' foo.scala:1:
warning: case classes without a parameter list have been deprecated;
use either case objects or case classes with `()' as parameter list.
case class Foo ^
a)bort, s)tack, r)esume: s
java.lang.Exception
[...]
at scala.tools.nsc.ast.parser.Parsers$UnitParser.deprecationWarning(Parsers.scala:207)
at scala.tools.nsc.ast.parser.Parsers$Parser.paramClauses(Parsers.scala:2058)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$classDef$1.apply(Parsers.scala:2557)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$classDef$1.apply(Parsers.scala:2545)
No review.
|
|
|
|
|
| |
Fixes and temporary debug scaffolding for reflect code.
|
| |
|
|
|
|
|
| |
Class that can be used for memoizing types in reified trees
|
|
|
|
|
|
|
| |
reflection refactoring so that we can now have a compiler that uses
reflection instead of class files (ReflectGlobal/ReflectMain). Still
needs some debugging to get it to run.
|
|
|
|
|
|
|
|
| |
Refactored everything that's clean in nsc.Main to nsc.Driver. Left the
cruft in Main which now inherits Driver. Makes it simpler to create new
compiler variants by subclassing Driver instead of adding yet one more
case to the convoluted logic in Main.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some 11th hour modifications with the dual purpose of a smooth console
life for sbt and so the repl can be used on google app engine. Although
this patch may look largish to be entering at RC4, there isn't a lot
going on. It's trying to make these dangerous things:
- property and environment variable accesses
- thread creation
- signal handler installation
happpen in a sufficiently uniform way that people who don't want them
and places who don't allow them are not left with an unfixable situation
where things blow up inside private methods. Also, the (ahem) lower than
usual elegance levels are due to it being intended for 2.9.x as well.
Review by harrah.
|
|
|
|
|
|
|
| |
Modified scala.reflect package object not to throw an exception at
initialization time if it can't instantiate the value in question.
Review by odersky.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Created infrastructure for testing icode + settings/partest yak shaving.
See enclosed test files/run/inline-ex-handlers.scala. To compare
optimized and unoptimized icode after a given phase, all you need in a
partest source file is this:
import scala.tools.partest.IcodeTest
object Test extends IcodeTest {
override def printIcodeAfterPhase = "inlineExceptionHandlers"
}
Other things can be done, see IcodeTest.scala. Review by ureche.
|
|
|
|
|
| |
corrected misspelled type params (capitalized names 3x)
|
| |
|
|
|
|
|
|
| |
Bug in optimizer eliminated potentially exceptional not-dead code.
Streamlined isSideEffecting logic. Review by ureche.
|
| |
|
|
|
|
|
|
|
| |
Improved documentation for scala.collection.immutable.List and
scala.collection.immutable.Queue. Contributed by Matthew Pocock during
the Monthly Docspree. Review by phaller.
|
|
|
|
|
| |
0-arg getClass reach bytecode. References SI-4931, no review.
|
|
|
|
|
| |
a hurry, no review.
|
|
|
|
|
| |
References SI-4931, no review.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Moved files to welcome our ant overlords, no review.
|
|
|
|
|
|
| |
[recommit] Backend optimization: Inline exception handlers. Review by
dragos.
|
|
|
|
|
|
| |
Literals now take Any as argument (used to represent free values in
reified trees).
|
| |
|
|
|
|
|
| |
New utilitly method to create scope with some elements.
|
|
|
|
|
|
|
|
|
| |
Major rewrite of the testing infrastructure for the presentation
compiler. Added several new tests that will be part of the nightly
build. Once the move to SBT is completed I will look into how to extract
the test infrastructure (as it should really not be living in the
compiler codebase). Review by dragos
|
| |
|
| |
|
|
|
|
|
|
| |
Improved the error message given when a concrete method implementation
doesn't match the abstract one. No review.
|