| Index: dart/pkg/compiler/lib/src/compiler.dart
|
| diff --git a/dart/pkg/compiler/lib/src/compiler.dart b/dart/pkg/compiler/lib/src/compiler.dart
|
| index 1d31f07dd370437a01102674a56e5ccfa485e8be..c6fc23abdec20b5e700f67a43c99cc5172fead9e 100644
|
| --- a/dart/pkg/compiler/lib/src/compiler.dart
|
| +++ b/dart/pkg/compiler/lib/src/compiler.dart
|
| @@ -752,10 +752,6 @@ abstract class Compiler implements DiagnosticListener {
|
|
|
| bool disableInlining = false;
|
|
|
| - /// True if compilation was aborted with a [CompilerCancelledException]. Only
|
| - /// set after Future retuned by [run] has completed.
|
| - bool compilerWasCancelled = false;
|
| -
|
| List<Uri> librariesToAnalyzeWhenRun;
|
|
|
| Tracer tracer;
|
| @@ -866,8 +862,6 @@ abstract class Compiler implements DiagnosticListener {
|
| }
|
| hasCrashed = true;
|
| rethrow;
|
| - } on CompilerCancelledException catch (ex) {
|
| - rethrow;
|
| } on StackOverflowError catch (ex) {
|
| // We cannot report anything useful in this case, because we
|
| // do not have enough stack space.
|
| @@ -1162,12 +1156,6 @@ abstract class Compiler implements DiagnosticListener {
|
| totalCompileTime.start();
|
|
|
| return new Future.sync(() => runCompiler(uri)).catchError((error) {
|
| - if (error is CompilerCancelledException) {
|
| - compilerWasCancelled = true;
|
| - log('Error: $error');
|
| - return false;
|
| - }
|
| -
|
| try {
|
| if (!hasCrashed) {
|
| hasCrashed = true;
|
| @@ -2129,21 +2117,6 @@ class CompilerTask {
|
| }
|
| }
|
|
|
| -/// Don't throw this error. It immediately aborts the compiler which causes the
|
| -/// following problems:
|
| -///
|
| -/// 1. No further errors and warnings are reported.
|
| -/// 2. Breaks incremental compilation.
|
| -class CompilerCancelledException extends Error {
|
| - final String reason;
|
| - CompilerCancelledException(this.reason);
|
| -
|
| - String toString() {
|
| - String banner = 'compiler cancelled';
|
| - return (reason != null) ? '$banner: $reason' : '$banner';
|
| - }
|
| -}
|
| -
|
| class SourceSpan implements Spannable {
|
| final Uri uri;
|
| final int begin;
|
|
|