Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: dart/pkg/dart2js_incremental/lib/caching_compiler.dart

Issue 848003002: Remove CompilerCancelledException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42861 Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js_incremental; 5 part of dart2js_incremental;
6 6
7 /// Do not call this method directly. It will be made private. 7 /// Do not call this method directly. It will be made private.
8 // TODO(ahe): Make this method private. 8 // TODO(ahe): Make this method private.
9 Future<Compiler> reuseCompiler( 9 Future<Compiler> reuseCompiler(
10 {DiagnosticHandler diagnosticHandler, 10 {DiagnosticHandler diagnosticHandler,
(...skipping 20 matching lines...) Expand all
31 outputProvider = NullSink.outputProvider; 31 outputProvider = NullSink.outputProvider;
32 } 32 }
33 if (environment == null) { 33 if (environment == null) {
34 environment = {}; 34 environment = {};
35 } 35 }
36 Compiler compiler = cachedCompiler; 36 Compiler compiler = cachedCompiler;
37 if (compiler == null || 37 if (compiler == null ||
38 compiler.libraryRoot != libraryRoot || 38 compiler.libraryRoot != libraryRoot ||
39 !compiler.hasIncrementalSupport || 39 !compiler.hasIncrementalSupport ||
40 compiler.hasCrashed || 40 compiler.hasCrashed ||
41 compiler.compilerWasCancelled ||
42 compiler.enqueuer.resolution.hasEnqueuedReflectiveElements || 41 compiler.enqueuer.resolution.hasEnqueuedReflectiveElements ||
43 compiler.deferredLoadTask.isProgramSplit) { 42 compiler.deferredLoadTask.isProgramSplit) {
44 if (compiler != null && compiler.hasIncrementalSupport) { 43 if (compiler != null && compiler.hasIncrementalSupport) {
45 print('***FLUSH***'); 44 print('***FLUSH***');
46 if (compiler.hasCrashed) { 45 if (compiler.hasCrashed) {
47 print('Unable to reuse compiler due to crash.'); 46 print('Unable to reuse compiler due to crash.');
48 } else if (compiler.compilerWasCancelled) {
49 print('Unable to reuse compiler due to cancel.');
50 } else if (compiler.enqueuer.resolution.hasEnqueuedReflectiveElements) { 47 } else if (compiler.enqueuer.resolution.hasEnqueuedReflectiveElements) {
51 print('Unable to reuse compiler due to dart:mirrors.'); 48 print('Unable to reuse compiler due to dart:mirrors.');
52 } else if (compiler.deferredLoadTask.isProgramSplit) { 49 } else if (compiler.deferredLoadTask.isProgramSplit) {
53 print('Unable to reuse compiler due to deferred loading.'); 50 print('Unable to reuse compiler due to deferred loading.');
54 } else { 51 } else {
55 print('Unable to reuse compiler.'); 52 print('Unable to reuse compiler.');
56 } 53 }
57 } 54 }
58 oldTag.makeCurrent(); 55 oldTag.makeCurrent();
59 compiler = new Compiler( 56 compiler = new Compiler(
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 final Map<String, String> output = new Map<String, String>(); 196 final Map<String, String> output = new Map<String, String>();
200 197
201 EventSink<String> call(String name, String extension) { 198 EventSink<String> call(String name, String extension) {
202 return new StringEventSink((String data) { 199 return new StringEventSink((String data) {
203 output['$name.$extension'] = data; 200 output['$name.$extension'] = data;
204 }); 201 });
205 } 202 }
206 203
207 String operator[] (String key) => output[key]; 204 String operator[] (String key) => output[key];
208 } 205 }
OLDNEW
« no previous file with comments | « dart/pkg/compiler/lib/src/use_unused_api.dart ('k') | dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698