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

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

Issue 1318383002: Extract ReceiverMask interface from TypeMask. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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 7 import 'dart:collection' show
8 Queue; 8 Queue;
9 9
10 import 'common/names.dart' show 10 import 'common/names.dart' show
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 MethodElement, 46 MethodElement,
47 Name, 47 Name,
48 TypedElement, 48 TypedElement,
49 TypedefElement; 49 TypedefElement;
50 import 'js/js.dart' as js; 50 import 'js/js.dart' as js;
51 import 'native/native.dart' as native; 51 import 'native/native.dart' as native;
52 import 'resolution/members.dart' show 52 import 'resolution/members.dart' show
53 ResolverVisitor; 53 ResolverVisitor;
54 import 'tree/tree.dart' show 54 import 'tree/tree.dart' show
55 Send; 55 Send;
56 import 'types/types.dart' show
57 TypeMaskStrategy;
56 import 'universe/universe.dart'; 58 import 'universe/universe.dart';
57 import 'util/util.dart' show 59 import 'util/util.dart' show
58 Link, 60 Link,
59 Setlet; 61 Setlet;
60 62
61 typedef ItemCompilationContext ItemCompilationContextCreator(); 63 typedef ItemCompilationContext ItemCompilationContextCreator();
62 64
63 class EnqueueTask extends CompilerTask { 65 class EnqueueTask extends CompilerTask {
64 final ResolutionEnqueuer resolution; 66 final ResolutionEnqueuer resolution;
65 final CodegenEnqueuer codegen; 67 final CodegenEnqueuer codegen;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 final String name; 117 final String name;
116 final Compiler compiler; // TODO(ahe): Remove this dependency. 118 final Compiler compiler; // TODO(ahe): Remove this dependency.
117 final EnqueuerStrategy strategy; 119 final EnqueuerStrategy strategy;
118 final ItemCompilationContextCreator itemCompilationContextCreator; 120 final ItemCompilationContextCreator itemCompilationContextCreator;
119 final Map<String, Set<Element>> instanceMembersByName 121 final Map<String, Set<Element>> instanceMembersByName
120 = new Map<String, Set<Element>>(); 122 = new Map<String, Set<Element>>();
121 final Map<String, Set<Element>> instanceFunctionsByName 123 final Map<String, Set<Element>> instanceFunctionsByName
122 = new Map<String, Set<Element>>(); 124 = new Map<String, Set<Element>>();
123 final Set<ClassElement> _processedClasses = new Set<ClassElement>(); 125 final Set<ClassElement> _processedClasses = new Set<ClassElement>();
124 Set<ClassElement> recentClasses = new Setlet<ClassElement>(); 126 Set<ClassElement> recentClasses = new Setlet<ClassElement>();
125 final Universe universe = new Universe(); 127 final Universe universe = new Universe(const TypeMaskStrategy());
126 128
127 static final TRACE_MIRROR_ENQUEUING = 129 static final TRACE_MIRROR_ENQUEUING =
128 const bool.fromEnvironment("TRACE_MIRROR_ENQUEUING"); 130 const bool.fromEnvironment("TRACE_MIRROR_ENQUEUING");
129 131
130 bool queueIsClosed = false; 132 bool queueIsClosed = false;
131 EnqueueTask task; 133 EnqueueTask task;
132 native.NativeEnqueuer nativeEnqueuer; // Set by EnqueueTask 134 native.NativeEnqueuer nativeEnqueuer; // Set by EnqueueTask
133 135
134 bool hasEnqueuedReflectiveElements = false; 136 bool hasEnqueuedReflectiveElements = false;
135 bool hasEnqueuedReflectiveStaticFields = false; 137 bool hasEnqueuedReflectiveStaticFields = false;
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 @override 1069 @override
1068 void processStaticUse(Enqueuer enqueuer, Element element) { 1070 void processStaticUse(Enqueuer enqueuer, Element element) {
1069 enqueuer.registerStaticUseInternal(element); 1071 enqueuer.registerStaticUseInternal(element);
1070 } 1072 }
1071 1073
1072 @override 1074 @override
1073 void processSelector(Enqueuer enqueuer, UniverseSelector selector) { 1075 void processSelector(Enqueuer enqueuer, UniverseSelector selector) {
1074 enqueuer.handleUnseenSelectorInternal(selector); 1076 enqueuer.handleUnseenSelectorInternal(selector);
1075 } 1077 }
1076 } 1078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698