| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
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 :)).
|
|
|
|
|
| |
This is necessary because toolboxes will no longer be available from the library.
Christopher Vogt will take care of the second reincarnation of DynamicRef.
|
|
|
|
|
|
|
|
|
| |
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].
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Makes `maxPrintString` configurable and fixes its treatment at zero.
Quite useful for debugging elaborate classloaders with long classpaths.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fixes SI-5857. More efficient min and max in Range and NumericRange
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
GenASM-based fix for SI-4804. Fix of the same for GenJVM pending.
|
| | | |
|
|\ \ \
| | | |
| | | | |
counterpart in GenASM to 241c7606d0bf5f3209b9d549fb75
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Add the first iteration of the `util.hashing` package.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
|/| | | |
Updates to primitive classes and classpath scripts.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Rather than stub implementations. This saves over 50K of bytecode.
I also added the necessary imports to silence the feature warnings.
|
|/ / /
| | |
| | |
| | |
| | | |
To include the asm classes in some cases, and also to improve
with my sadly now-greater knowledge of shell scripting.
|
|\ \ \
| | | |
| | | | |
Fixes typos in scaladoc of Orderes.scala
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix SI-5880.
|
| | |_|/
| |/| |
| | | |
| | | | |
Add a ChiSquare test for the new hash code.
|
|\ \ \ \
| | | | |
| | | | | |
Fix SI-5867.
|
| |/ / /
| | | |
| | | |
| | | | |
Override clone for unrolled buffer.
|
|\ \ \ \
| | | | |
| | | | | |
Fix SI-5879.
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
|/| | | |
Add configuration for ExecutionContext
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Switching to the Akka-provided Unsafe detection
|
| | |
| | |
| | |
| | | |
platforms, like Android
|
|\ \ \
| | | |
| | | | |
Implementing Hashing typeclass
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Move `Hashing` to `scala.util.hashing`.
Adde `Hashing.Default` to `Hashing` companion object.
Change `TrieMap` to autoswitch from `Hashing.Default` to `TrieMap.MangledHashing`.
|
| | | |
| | | |
| | | |
| | | | |
Make Equiv serializable.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Modify TrieMap to use hashing and equality.
Modify serialization in TrieMap appropriately.
|
|\ \ \ \
| | | | |
| | | | | |
SI-5313 Revert to two traversals in substThisAndSym.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Partially reverts 334872e.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
SI-5683 Fail gracefully when transposing a ragged type arg matrix.
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Revert "#653 -- no lub for statement exprs' types"
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Don't compute least upper bounds for if-like exprs in statement position
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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).
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Unreachability analysis for pattern matches
Thanks for reviewing, @retronym!
|
| | | | | | |
|