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

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

Issue 2580403002: Extract ClosedWorldImpl from WorldImpl. (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
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.enqueue; 5 library dart2js.enqueue;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import 'cache_strategy.dart'; 9 import 'cache_strategy.dart';
10 import 'common/backend_api.dart' show Backend; 10 import 'common/backend_api.dart' show Backend;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 Resolution resolution, 157 Resolution resolution,
158 this.strategy, 158 this.strategy,
159 this._globalDependencies, 159 this._globalDependencies,
160 Backend backend, 160 Backend backend,
161 CacheStrategy cacheStrategy, 161 CacheStrategy cacheStrategy,
162 [this.name = 'resolution enqueuer']) 162 [this.name = 'resolution enqueuer'])
163 : this.backend = backend, 163 : this.backend = backend,
164 this._resolution = resolution, 164 this._resolution = resolution,
165 this.nativeEnqueuer = backend.nativeResolutionEnqueuer(), 165 this.nativeEnqueuer = backend.nativeResolutionEnqueuer(),
166 _universe = new ResolutionWorldBuilderImpl( 166 _universe = new ResolutionWorldBuilderImpl(
167 backend, resolution, cacheStrategy, const TypeMaskStrategy()) { 167 backend, resolution, cacheStrategy, const OpenWorldStrategy()) {
168 _impactVisitor = new EnqueuerImplImpactVisitor(this); 168 _impactVisitor = new EnqueuerImplImpactVisitor(this);
169 } 169 }
170 170
171 ResolutionWorldBuilder get universe => _universe; 171 ResolutionWorldBuilder get universe => _universe;
172 172
173 OpenWorld get _openWorld => universe.openWorld; 173 OpenWorld get _openWorld => universe.openWorld;
174 174
175 bool get queueIsEmpty => _queue.isEmpty; 175 bool get queueIsEmpty => _queue.isEmpty;
176 176
177 DiagnosticReporter get _reporter => _resolution.reporter; 177 DiagnosticReporter get _reporter => _resolution.reporter;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 524 }
525 525
526 typedef void _DeferredActionFunction(); 526 typedef void _DeferredActionFunction();
527 527
528 class _DeferredAction { 528 class _DeferredAction {
529 final Element element; 529 final Element element;
530 final _DeferredActionFunction action; 530 final _DeferredActionFunction action;
531 531
532 _DeferredAction(this.element, this.action); 532 _DeferredAction(this.element, this.action);
533 } 533 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698