summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* preparations: always explicitly provide type tagsEugene Burmako2012-06-084-10/+38
| | | | | In our codebase we now explicitly provide type tags even if they can be materialized. This is necessary to ease the upcoming reflection refactoring (or refactorings :)).
* preparations: removes DynamicProxyEugene Burmako2012-06-084-167/+0
| | | | | This is necessary because toolboxes will no longer be available from the library. Christopher Vogt will take care of the second reincarnation of DynamicRef.
* macros: refactoring of fast track infrastructureEugene Burmako2012-06-0819-311/+346
| | | | | | | | | As a result, hardwired macros don't need implementation stubs. This is very important, because in a few commits scala.reflect.makro.Context will move out from scala-library.jar. Also adding fast track entries doesn't require jumping through hoops with PDTs. It's as simple as defining PartialFunction[Tree, Any].
* macros: now use Java reflectionEugene Burmako2012-06-081-81/+71
| | | | | | | | | Due to some voodoo magic creating a new instance of a compiler cake, immediately degrades performance of the compiler. Out guess is that it makes HotSpot treat calls to cake methods as polymorphic. However we didn't do any performance testing, it just works, and that's enough. Enough for now.
* macros: -Xmacros is now retiredEugene Burmako2012-06-0814-15/+13
|
* improves traces and error messagesEugene Burmako2012-06-089-51/+70
|
* REPL bells and whistles: -Dscala.repl.maxprintstring=<Integer>Eugene Burmako2012-06-083-2/+5
| | | | | Makes `maxPrintString` configurable and fixes its treatment at zero. Quite useful for debugging elaborate classloaders with long classpaths.
* REPL bells and whistles: -Dscala.repl.vids=<Boolean>Eugene Burmako2012-06-082-1/+7
| | | | | | Displays identity hashcodes next to `res` values printed by REPL. This proved quite useful in detecting reflection artifacts that look the same, but are, in fact, different.
* REPL bells and whistles: -Dscala.repl.autoruncode=<JFile>Eugene Burmako2012-06-082-3/+11
| | | | | | Useful for the upcoming reflection refactoring. Previously it was more or less okay to type "import scala.reflect.mirror._", but soon we'll have multiple universes and mirrors.
* REPL no longer hangs after initialization crashesEugene Burmako2012-06-083-8/+27
|
* typers: simplifies original calculation in typedAnnotatedEugene Burmako2012-06-081-4/+3
|
* typers: dubious line in adaptTypeEugene Burmako2012-06-081-0/+4
|
* typers: fixes error handling in checkStableEugene Burmako2012-06-081-1/+3
|
* Merge pull request #672 from axel22/issue/5857Adriaan Moors2012-06-083-2/+87
|\ | | | | Fixes SI-5857. More efficient min and max in Range and NumericRange
| * Fixes SI-5857.Aleksandar Prokopec2012-06-063-2/+87
| | | | | | | | | | | | | | | | Override `min` and `max` in `Range` and `NumericRange` to check if a default `Ordering` for the numeric type in question is used. If so, bypass traversal and compute the minimum or maximum element.
* | Merge pull request #654 from magarciaEPFL/ticket-SI-4804Adriaan Moors2012-06-081-21/+13
|\ \ | | | | | | GenASM-based fix for SI-4804. Fix of the same for GenJVM pending.
| * | GenASM-based fix for SI-4804. Fix of the same for GenJVM pending.Miguel Garcia2012-06-011-21/+13
| | |
* | | Merge pull request #678 from magarciaEPFL/fixesJosh Suereth2012-06-081-1/+5
|\ \ \ | | | | | | | | counterpart in GenASM to 241c7606d0bf5f3209b9d549fb75
| * | | counterpart in GenASM to 241c7606d0bf5f3209b9d549fb75Miguel Garcia2012-06-071-1/+5
| | | |
* | | | Merge pull request #677 from axel22/feature/util-hashing2Josh Suereth2012-06-0719-58/+145
|\ \ \ \ | |/ / / |/| | | Add the first iteration of the `util.hashing` package.
| * | | Add the first iteration of the `util.hashing` package.Aleksandar Prokopec2012-06-0719-58/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move `MurmurHash3` to `util.hashing`. Make the `class` private and retain a public companion `object`, and put the `MurmurHash3.Hashing` implementations for various types in the companion. Add a method which composes `ByteswapHashing` with some other hashing. Rename `hashOf` to `hash`. Fix chi-square test in a test-case. Review by @jsuereth. Moved a failing test that seems to use some other library version to pending.
* | | | Merge pull request #674 from paulp/checkin-jun6Josh Suereth2012-06-0723-857/+896
|\ \ \ \ | |/ / / |/| | | Updates to primitive classes and classpath scripts.
| * | | Generate abstract methods in scala.Byte and friends.Paul Phillips2012-06-0616-815/+863
| | | | | | | | | | | | | | | | | | | | Rather than stub implementations. This saves over 50K of bytecode. I also added the necessary imports to silence the feature warnings.
| * | | Updated tools/*cp scripts.Paul Phillips2012-06-067-42/+33
|/ / / | | | | | | | | | | | | To include the asm classes in some cases, and also to improve with my sadly now-greater knowledge of shell scripting.
* | | Merge pull request #669 from dgruntz/masterJosh Suereth2012-06-061-5/+6
|\ \ \ | | | | | | | | Fixes typos in scaladoc of Orderes.scala
| * | | fixes typos in scaladoc of Orderes.calaDominik Gruntz2012-06-051-5/+6
| | | |
* | | | Merge pull request #673 from axel22/issue/5880Josh Suereth2012-06-062-2/+49
|\ \ \ \ | | | | | | | | | | Fix SI-5880.
| * | | | Fix SI-5880.Aleksandar Prokopec2012-06-062-2/+49
| | |_|/ | |/| | | | | | | | | | Add a ChiSquare test for the new hash code.
* | | | Merge pull request #671 from axel22/issue/5867Josh Suereth2012-06-063-0/+17
|\ \ \ \ | | | | | | | | | | Fix SI-5867.
| * | | | Fix SI-5867.Aleksandar Prokopec2012-06-063-0/+17
| |/ / / | | | | | | | | | | | | Override clone for unrolled buffer.
* | | | Merge pull request #670 from axel22/issue/5879Josh Suereth2012-06-063-15/+142
|\ \ \ \ | | | | | | | | | | Fix SI-5879.
| * | | | Fix SI-5879.Aleksandar Prokopec2012-06-063-15/+142
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug where a key in an immutable hash map have the corresponding value different in the iteration than when doing lookup. This use to happen after calling `merge`. Fix the order in which a key-value pair appears in the collision resolution function - the first argument always comes from the `this` hash map. Deprecate `merge` in favour of `merged`, as this is a pure method. As an added benefit, the syntax for invoking `merge` is now nicer.
* | | | Merge pull request #667 from phaller/wip-sip14-ec-configJosh Suereth2012-06-061-7/+21
|\ \ \ \ | |/ / / |/| | | Add configuration for ExecutionContext
| * | | Add configuration for ExecutionContextphaller2012-06-051-7/+21
| |/ /
* | | Merge pull request #668 from viktorklang/masterJosh Suereth2012-06-053-54/+3
|\ \ \ | |/ / |/| | Switching to the Akka-provided Unsafe detection
| * | Switching the the Akka-contributed Unsafe detection to support more ↵Viktor Klang2012-06-053-54/+3
| | | | | | | | | | | | platforms, like Android
* | | Merge pull request #655 from axel22/feature/hasherJosh Suereth2012-06-045-29/+145
|\ \ \ | | | | | | | | Implementing Hashing typeclass
| * | | Fix `Hashing`.Aleksandar Prokopec2012-06-014-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | Move `Hashing` to `scala.util.hashing`. Adde `Hashing.Default` to `Hashing` companion object. Change `TrieMap` to autoswitch from `Hashing.Default` to `TrieMap.MangledHashing`.
| * | | Remove Equality in favour of Equiv.Aleksandar Prokopec2012-06-015-48/+11
| | | | | | | | | | | | | | | | Make Equiv serializable.
| * | | Add Hashing and Equality typeclasses.Aleksandar Prokopec2012-06-014-27/+168
| | | | | | | | | | | | | | | | | | | | | | | | Modify TrieMap to use hashing and equality. Modify serialization in TrieMap appropriately.
* | | | Merge pull request #665 from retronym/ticket/5213Adriaan Moors2012-06-042-11/+40
|\ \ \ \ | | | | | | | | | | SI-5313 Revert to two traversals in substThisAndSym.
| * | | | SI-5313 Revert to two traversals in substThisAndSym.Jason Zaugg2012-06-032-11/+40
| | | | | | | | | | | | | | | | | | | | Partially reverts 334872e.
* | | | | Merge pull request #661 from retronym/ticket/5683Adriaan Moors2012-06-034-29/+77
|\ \ \ \ \ | | | | | | | | | | | | SI-5683 Fail gracefully when transposing a ragged type arg matrix.
| * | | | | SI-5683 Fail gracefully when transposing a ragged type arg matrix.Jason Zaugg2012-06-034-29/+77
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code used to do this, until `transpose` starting throwing IAE rather than AIOOBE. Symptomatic treatment only: The reported crasher now infers ill-kinded type args and reports an error.
* | | | | Merge pull request #664 from adriaanm/revert-653Adriaan Moors2012-06-034-24/+9
|\ \ \ \ \ | | | | | | | | | | | | Revert "#653 -- no lub for statement exprs' types"
| * | | | | Revert "#653 -- no lub for statement exprs' types"Adriaan Moors2012-06-034-24/+9
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I should not have merged this pull request yet. I didn't notice we didn't have a full successful run of the test suite. It looks like it breaks test/files/continuations-neg/lazy.scala and given the pending amount of changes, I prefer to have a stable master. This reverts commit 037d3dcbc5896864aec0f9121eeda23fcc4cd610.
* | | | | Merge pull request #653 from dragos/issue/skip-lub-in-blocksAdriaan Moors2012-06-034-9/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Don't compute least upper bounds for if-like exprs in statement position
| * | | | | Don't compute least upper bounds for expressions in statement positions ↵Iulian Dragos2012-06-034-9/+24
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inside blocks. This may save huge amount of time (Fixes SI-5862) for complicated lubs. I had to remove the a check in adapt for the part that transforms <expr> into { <expr>; () } when the expected type is Unit. The reason is in the code. As a side effect, we get more warnings for pure expressions in statement positions (see the change in the test file).
* | | | | Merge pull request #650 from adriaanm/topic-virtpatmatAdriaan Moors2012-06-0313-365/+916
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Unreachability analysis for pattern matches Thanks for reviewing, @retronym!
| * | | | | incorporate @retronym's review commentsAdriaan Moors2012-06-031-69/+39
| | | | | |