Fix `Instrumentation.getStatistics` method in partest.

The previous implementation was wrong because it
would always enable profiling after call to
`Instrumenation.getStatistics` method. Now we are
checking the profiling status and enable it again
only when it was enabled before.

Review by @phaller.
`ScriptSourceFile` should not hard-code `OffsetPosition`.

The presentation compiler should support script source files as well, but it needs range positions. This commit
fixes an oversight when `RangePosition` was introduced.
Avoids loading scala.package and scala.reflect.package from source if a classfile exists.

We know that loading these packages from source leads to compilation errors. To reproduce: Update scala.reflect.package, make sure it is on the source path and recompile anything using it. You will get a number of errors having to do with ClassTags and macro expansions. With the patch, these errors go away because the package is not loaded as long as a classfile exists.
Refined isEffectivelyFinal logic for sealedness.

If the enclosing class of a method is sealed and has only final
subclasses, then the method is effectively final in the sealed class if
none of the subclasses overrides it. This makes it possible to inline
more methods without explicitly marking them final.

Note that the test doesn't fail before this patch due to SI-6142,
a bug in the optimizer, but here's a bytecode diff to prove it:

  @@ -16,8 +16,10 @@ public final class Test$ {
       Code:
   : getstatic                      // Field Foo$.MODULE$:LFoo$;
   : invokevirtual                  // Method Foo$.mkFoo:()LFoo;
  +: pop
   : bipush
  -: invokevirtual                  // Method Foo.bar:(I)I
  +: iconst_1
  +: iadd
   : ireturn

And the test in neg, which is manually made to fail due to the absence
of inline warnings, correctly refuses to inline the methods.

Review by @dragos.
Removed restriction on final vars, SI-2418.

The original fix for SI-2418 excluded final vars entirely, but
the problem was not final vars per se, but the emission of ACC_FINAL
in combination with ACC_VOLATILE.  Since vars never get ACC_FINAL
now, this is no longer an issue.
A missed checkfile for pull #949.

The message from the buildbot that the build failed is really,
really, really hard to see if there's any discussion.  Can it
be instructed in the ways of markdown so it can be red/green
and bigger?
SI-6142: warn @inline-methods ending up not inlined (rightfully or not)
Renaming files to please ant.

"If the names don't fit, do not commit!"
Improve unchecked warnings a lot.

Don't warn on "uncheckable" type patterns if they can be
statically guaranteed, regardless of their runtime checkability.
This covers patterns like Seq[Any] and lots more.

Review by @adriaanm.
Cleared the remaining unchecked warnings in trunk.
Eliminated remainder of "catches Throwable" warnings.

And also non-exhaustive matches.

And added -nowarn to the build options for scalacheck,
we don't need to hear the warnings for code we aren't
able to fix.
Changed isHidden condition back to isSynthetic.

Since we were blessed with spurious warnings.

With this commit I have eliminated every warning in trunk
except for deprecation, feature, and inliner warnings, plus
one due to SI-6146.  I'm not going to count "pattern matcher
performance warnings" which are presently preventing me from
turning on -unchecked even though there are no genuine
-unchecked warnings remaining.  Hey, get your own option!

Conflicts:
	src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala
Eliminated all the current feature warnings.

This pretty much takes us down to deprecation and inliner warnings.
Fix a few scaladoc tests I broke.
New Executor.

To try it out:

run "instrument worksheet" as usual in the REPL. Worksheet needs to have enclosing object definition. Say it is named "Obj".

This will generate a file Obj$instrumented. You can compile that file separately and run it using Java. It should reproduce itself.
Disable interrupts during code instrumentation

Code instrumentation needs to see a consistent snapshot of a source file. To achieve that we disable interrupts during getInstrumented.
Adds method askForResponse

Adds method askForResponse which returns a response immediately instead of waiting for a result. That way, one can wait for an ask's result using a timeout.
Raw string interpolator

Adds a raw string interpolator raw"..." which does not do any escape sequence processing.
New Worksheet mixing scheme

Debug changes
Merge pull request #1004 from paulp/topic/warnings-2.10.x

Topic/warnings 2.10.x