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

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

Issue 2992863002: Support forEachClassMember on closure classes (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/impact_transformer.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.common.codegen; 5 library dart2js.common.codegen;
6 6
7 import '../common_elements.dart'; 7 import '../common_elements.dart';
8 import '../elements/entities.dart'; 8 import '../elements/entities.dart';
9 import '../elements/types.dart' show DartType, InterfaceType; 9 import '../elements/types.dart' show DartType, InterfaceType;
10 import '../universe/use.dart' show ConstantUse, DynamicUse, StaticUse, TypeUse; 10 import '../universe/use.dart' show ConstantUse, DynamicUse, StaticUse, TypeUse;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 void registerConstantUse(ConstantUse constantUse) { 140 void registerConstantUse(ConstantUse constantUse) {
141 worldImpact.registerConstantUse(constantUse); 141 worldImpact.registerConstantUse(constantUse);
142 } 142 }
143 143
144 void registerTypeVariableBoundsSubtypeCheck( 144 void registerTypeVariableBoundsSubtypeCheck(
145 DartType subtype, DartType supertype) { 145 DartType subtype, DartType supertype) {
146 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); 146 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype);
147 } 147 }
148 148
149 void registerInstantiatedClosure(Local element) { 149 void registerInstantiatedClosure(FunctionEntity element) {
150 worldImpact.registerStaticUse(new StaticUse.closure(element)); 150 worldImpact.registerStaticUse(new StaticUse.callMethod(element));
151 } 151 }
152 152
153 void registerConstSymbol(String name) { 153 void registerConstSymbol(String name) {
154 worldImpact.registerConstSymbol(name); 154 worldImpact.registerConstSymbol(name);
155 } 155 }
156 156
157 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) { 157 void registerSpecializedGetInterceptor(Set<ClassEntity> classes) {
158 worldImpact.registerSpecializedGetInterceptor(classes); 158 worldImpact.registerSpecializedGetInterceptor(classes);
159 } 159 }
160 160
161 void registerUseInterceptor() { 161 void registerUseInterceptor() {
162 worldImpact.registerUseInterceptor(); 162 worldImpact.registerUseInterceptor();
163 } 163 }
164 164
165 void registerInstantiation(InterfaceType type) { 165 void registerInstantiation(InterfaceType type) {
166 registerTypeUse(new TypeUse.instantiation(type)); 166 registerTypeUse(new TypeUse.instantiation(type));
167 } 167 }
168 168
169 void registerAsyncMarker(AsyncMarker asyncMarker) { 169 void registerAsyncMarker(AsyncMarker asyncMarker) {
170 worldImpact.registerAsyncMarker(asyncMarker); 170 worldImpact.registerAsyncMarker(asyncMarker);
171 } 171 }
172 } 172 }
173 173
174 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. 174 /// [WorkItem] used exclusively by the [CodegenEnqueuer].
175 abstract class CodegenWorkItem extends WorkItem { 175 abstract class CodegenWorkItem extends WorkItem {
176 CodegenRegistry get registry; 176 CodegenRegistry get registry;
177 } 177 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/impact_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698