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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 2529273003: Merge QueueFilter with EnqueuerStrategy (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'cache_strategy.dart' show CacheStrategy; 10 import 'cache_strategy.dart' show CacheStrategy;
(...skipping 17 matching lines...) Expand all
28 import 'core_types.dart' show CoreClasses, CommonElements, CoreTypes; 28 import 'core_types.dart' show CoreClasses, CommonElements, CoreTypes;
29 import 'dart_types.dart' show DartType, DynamicType, InterfaceType, Types; 29 import 'dart_types.dart' show DartType, DynamicType, InterfaceType, Types;
30 import 'deferred_load.dart' show DeferredLoadTask; 30 import 'deferred_load.dart' show DeferredLoadTask;
31 import 'diagnostics/code_location.dart'; 31 import 'diagnostics/code_location.dart';
32 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter; 32 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter;
33 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION; 33 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION;
34 import 'diagnostics/messages.dart' show Message, MessageTemplate; 34 import 'diagnostics/messages.dart' show Message, MessageTemplate;
35 import 'dump_info.dart' show DumpInfoTask; 35 import 'dump_info.dart' show DumpInfoTask;
36 import 'elements/elements.dart'; 36 import 'elements/elements.dart';
37 import 'elements/modelx.dart' show ErroneousElementX; 37 import 'elements/modelx.dart' show ErroneousElementX;
38 import 'enqueue.dart' 38 import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer;
39 show Enqueuer, EnqueueTask, ResolutionEnqueuer, QueueFilter;
40 import 'environment.dart'; 39 import 'environment.dart';
41 import 'id_generator.dart'; 40 import 'id_generator.dart';
42 import 'io/source_information.dart' show SourceInformation; 41 import 'io/source_information.dart' show SourceInformation;
43 import 'js_backend/backend_helpers.dart' as js_backend show BackendHelpers; 42 import 'js_backend/backend_helpers.dart' as js_backend show BackendHelpers;
44 import 'js_backend/js_backend.dart' as js_backend show JavaScriptBackend; 43 import 'js_backend/js_backend.dart' as js_backend show JavaScriptBackend;
45 import 'library_loader.dart' 44 import 'library_loader.dart'
46 show 45 show
47 ElementScanner, 46 ElementScanner,
48 LibraryLoader, 47 LibraryLoader,
49 LibraryLoaderTask, 48 LibraryLoaderTask,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 /// The constant environment for the frontend interpretation of compile-time 174 /// The constant environment for the frontend interpretation of compile-time
176 /// constants. 175 /// constants.
177 ConstantEnvironment constants; 176 ConstantEnvironment constants;
178 177
179 EnqueueTask enqueuer; 178 EnqueueTask enqueuer;
180 DeferredLoadTask deferredLoadTask; 179 DeferredLoadTask deferredLoadTask;
181 MirrorUsageAnalyzerTask mirrorUsageAnalyzerTask; 180 MirrorUsageAnalyzerTask mirrorUsageAnalyzerTask;
182 DumpInfoTask dumpInfoTask; 181 DumpInfoTask dumpInfoTask;
183 182
184 /// A customizable filter that is applied to enqueued work items.
185 QueueFilter enqueuerFilter = new QueueFilter();
186
187 bool get hasFunctionApplySupport => resolverWorld.hasFunctionApplySupport; 183 bool get hasFunctionApplySupport => resolverWorld.hasFunctionApplySupport;
188 bool get hasIsolateSupport => resolverWorld.hasIsolateSupport; 184 bool get hasIsolateSupport => resolverWorld.hasIsolateSupport;
189 185
190 bool get hasCrashed => _reporter.hasCrashed; 186 bool get hasCrashed => _reporter.hasCrashed;
191 187
192 Stopwatch progress; 188 Stopwatch progress;
193 189
194 bool get shouldPrintProgress { 190 bool get shouldPrintProgress {
195 return options.verbose && progress.elapsedMilliseconds > 500; 191 return options.verbose && progress.elapsedMilliseconds > 500;
196 } 192 }
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 _ElementScanner(this.scanner); 2253 _ElementScanner(this.scanner);
2258 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); 2254 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library);
2259 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); 2255 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit);
2260 } 2256 }
2261 2257
2262 class _EmptyEnvironment implements Environment { 2258 class _EmptyEnvironment implements Environment {
2263 const _EmptyEnvironment(); 2259 const _EmptyEnvironment();
2264 2260
2265 String valueOf(String key) => null; 2261 String valueOf(String key) => null;
2266 } 2262 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698