| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Realized most of the remaining methods in Option warrant @inline and
final treatment and modified them accordingly. Review by dragos.
|
|
|
|
|
|
|
|
| |
Working on the inliner, discovered that a few key methods are not
inlined. With this commit there are 326 fewer classfiles generated
under -optimise. Use getOrElse with even wilder abandon than you were
previously. No review.
|
|
|
|
|
|
| |
Carved out access exception for java protected statics, which otherwise
cannot be accessed from scala. Changes close status of #1806, no review.
|
|
|
|
|
|
| |
A few more items so that all may enjoy power mode in the way nature
intended. No review.
|
| |
|
|
|
|
|
| |
down into more flexible pieces. No review.
|
|
|
|
|
|
| |
More adjustments to repl parsing to accomodate inaccurately positioned
parse trees. No review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The eagerly awaited companion commit to r23622, the surprise hit of last
winter. Singletons now have the singleton type inferred in monomorphic
contexts as well. In english:
scala> object X
defined module X
scala> def f = X
f: X.type
Wait, that's not english. English review by moors.
|
|
|
|
|
|
|
|
| |
Fixed a repl regression with parentheses handling, reminding me we
really need that honest parser phase which doesn't betray us with
parentheses abandonment and dramatic desugarings. I'll promote it from
page 14 to page 11. Closes #4661, no review.
|
|
|
|
|
|
| |
Fixed a repl history issue where some control chars sneaking in would
render the entire history invisible. No review.
|
|
|
|
|
|
|
|
| |
There were two distinct bugs in here, which if I ran the world would be
a wakeup call that robust software cannot emerge from thousands of lines
of low-level AST matching. In case you are frozen in suspense: I do not
run the world. Review by moors.
|
|
|
|
|
| |
test in r25038, so closes #4512, no review.
|
|
|
|
|
|
| |
Cleaning up power mode import issues (and the amazing first power mode
test) no review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Working on the finer points of the Total Repl Experience. Some of what
is in this patch:
-- Instantaneous repl startup. Closes #4561.
-- SIGINT handler installed last. If you've been annoyed at the repl
being difficult to interrupt during its initialization, this one is
especially for you.
-- Started abstracting out some bits which would go into an API and
reconfiguring the repl in those terms.
For a good time, call S-C-A-L-A -Dscala.repl.power. No review.
|
|
|
|
|
|
|
|
|
| |
Moved some pure string manipulation functions out of the base class
for all Reporters and into a more suitable home. "Please, help stamp
out inheritance abuse. If you won't do it for yourself do it for your
children... or your subclass's children." Also removed some dead
reporter code (not used anywhere, including the IDE.) No review.
|
|
|
|
|
|
| |
Created AbstractOrMissingHandler for the repl trying to give better
error messages in the face of bytecode fatalities. No review.
|
| |
|
|
|
|
|
|
|
| |
Now :t types declarations as well as expressions, and cleans up the
output the same way the repl does so stray unsolved type constraints
don't befuddle anyone. Closes #4391, no review.
|
| |
|
|
|
|
|
|
|
|
| |
Fixed a crasher in the scanner when unicode escape sequences offered up
EOF before completion. Also made the repl a little more robust against
crashers in scalac. Treat it like a hostile witness! Closes #4584, no
review.
|
|
|
|
|
|
|
|
|
|
|
| |
Each of the three commits preceding this are to correct regressions
which would have been caught by the interpreter test and never checked
in in the first place, were it not disabled. The windows tax claims
another victim. Or three victims.
Re-enabled the interpreter test. No way for me to know if it will pass
everywhere without trying it. No review.
|
|
|
|
|
|
| |
Fixing an interpreter output regression and updated repl debugging and
tracing code. No review.
|
|
|
|
|
|
| |
with the earliest position later than the earliest character in the
source code, which was breaking some repl logic. No review.
|
|
|
|
|
|
| |
Fixed interpreter wrapper spotting logic to make sure the $iw in
question is in a package. Closes #4595, no review.
|
|
|
|
|
| |
Updated jline build to use xsbt 0.9.9 and rebuilt, no review.
|
|
|
|
|
|
| |
Yikes, prependToList was violating List immutability. Closes #4656, no
review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Overcoming limitations of the repl, multiple-tree lines and assignments.
The best part of nicely documented limitations is that you can stare at
the same comment for years and then the day comes when you give it the
heave-ho.
Exhibit A (regarding a single bare expression): "This is necessary due
to it being hard to modify code at a textual level, and it being hard
to submit an AST to the compiler." Yes, it IS hard to modify code at
a textual level (see enclosed patch) but we won't let that stop us
anymore. Closes #4578.
Exhibit B (regarding the left hand side of assignments having to be
Ident): "An unfortunate limitation." Unfortunate no longer! No review.
|
|
|
|
|
|
| |
Repaired regression in Set causing Set ++ to become very expensive.
Closes #4642, no review.
|
|
|
|
|
|
| |
Altered IntSetting help syntax to be more indicative that an argument is
expected. No review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rebuilt jline with some navigation improvements (ctrl-T jumps forward a
word, ctrl-X deletes the word in front of the cursor), thanks to Kenji
Matsuoka for portions of this patch.
Note to OSX users: TIL learned that ctrl-O is swallowed by the terminal
and that unless you have some need for weird flow-control over serial
connection control chars, you can recover it with
stty discard undef
And then you have ctrl-O for previous word and ctrl-T for next word.
No review.
|
|
|
|
|
| |
Finished reverting the misbegotten r23262, no review.
|
|
|
|
|
|
|
| |
Fix for failing { val x = classOf[List[_]] } introduced by paulp
in r23262. I already had this in mind (see comments of #4419) but I was
holding back in the runup to 2.9. Closes #4419, review by odersky.
|
|
|
|
|
| |
Reverts a change as a tribute to the performance gods, no review.
|
|
|
|
|
|
|
|
|
| |
Created named subclasses not nested inside objects for various uniqified
Types. This has a large effect on memory consumption by avoiding an
unnecessary $outer field for each instance. (It also makes stack traces
look a lot nicer.) Statistics to be supplied eventually. Review by
odersky.
|
|
|
|
|
|
| |
Regression in Enumeration caused some nullary methods to pose as fields.
Closes #4570, no review.
|
| |
|
|
|
|
|
|
| |
Now that I've convinced myself getOrElseUpdate isn't a big killer
performancewise, simplified ZipArchive a bit. No review.
|
|
|
|
|
|
| |
Commented out a bug workaround which seems to be too costly to impose on
the general case. No review.
|
| |
|
|
|
|
|
|
| |
Created a PlainDirectory subclass of PlainFile so I can use polymorphism
to optimize. No review.
|
|
|
|
|
|
| |
Array[Byte] => Array[Char] => String => Array[Char] => Name. That's not
how Professor Optimize said to do it! No review.
|
|
|
|
|
| |
Eliminating more calls requiring filesystem access, no review.
|
|
|
|
|
|
| |
Wow, ZipEntry#getTime is expensive! So that's how I gave back all my
ZipArchive gains. No review.
|
|
|
|
|
| |
Uglified an unpickler method based on profiler input, no review.
|
|
|
|
|
|
|
|
|
| |
Makes MarkupParser.nextch lazy, only reaching out for the next char when
calling ch or eof. To make it possible, nextch now returns Unit instead
of Char. As it happens, that's how it is used almost everywhere.
Contributed by Daniel Sobral, no review.
|
|
|
|
|
|
|
|
|
|
| |
Moved scala.reflect.Chars to scala.reflect.internal.Chars, un-splitting
the scala.reflect package. This is necessary for running in an OSGi
container, such as Eclipse. A package may not be contributed by two
different bundles (in this case the library and the compiler). It may
be moved back when 'scala.reflect' exists only in one place. review by
extempore.
|
|
|
|
|
| |
Fix documentation of ## regarding null.##, thanks ymasory, no review.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removes SUnit (long deprecated!) from the standard library.
the relatively small number of partest tests in Scala's suite that
were still using SUnit now either just use regular asserts, or they
print stuff that partest checks with a .check file. Also fixed some bad
indentation, removed ancient useless-looking commented-out code, etc.
Contributed by Seth Tisue (way to go seth) no review.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Suppress unwanted noise generated by javac when compiling test case for
#1263.
formerly the test case caused this to be printed:
Note: test/files/pos/t1263/Test.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
we suppress this using @SuppressWarnings.
Contributed by Seth Tisue, no review.
|
|
|
|
|
|
|
| |
Apparent assumption that Literal(0) would be adapted to Literal(0.0f) as
necessary mercilessly invalidated. Fixed mkZero to account for all types
explicitly. Closes #4617, no review.
|