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

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

Issue 1435853002: Register closures using StaticUse. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment Created 5 years, 1 month 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/deferred_load.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.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show 8 import '../compiler.dart' show
9 Compiler; 9 Compiler;
10 import '../constants/values.dart' show 10 import '../constants/values.dart' show
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void registerCompileTimeConstant(ConstantValue constant) { 197 void registerCompileTimeConstant(ConstantValue constant) {
198 worldImpact.registerCompileTimeConstant(constant); 198 worldImpact.registerCompileTimeConstant(constant);
199 } 199 }
200 200
201 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, 201 void registerTypeVariableBoundsSubtypeCheck(DartType subtype,
202 DartType supertype) { 202 DartType supertype) {
203 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); 203 worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype);
204 } 204 }
205 205
206 void registerInstantiatedClosure(LocalFunctionElement element) { 206 void registerInstantiatedClosure(LocalFunctionElement element) {
207 worldImpact.registerClosure(element); 207 worldImpact.registerStaticUse(new StaticUse.closure(element));
208 } 208 }
209 209
210 void registerConstSymbol(String name) { 210 void registerConstSymbol(String name) {
211 worldImpact.registerConstSymbol(name); 211 worldImpact.registerConstSymbol(name);
212 } 212 }
213 213
214 void registerSpecializedGetInterceptor(Set<ClassElement> classes) { 214 void registerSpecializedGetInterceptor(Set<ClassElement> classes) {
215 worldImpact.registerSpecializedGetInterceptor(classes); 215 worldImpact.registerSpecializedGetInterceptor(classes);
216 } 216 }
217 217
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 TreeElements get resolutionTree => element.resolvedAst.elements; 260 TreeElements get resolutionTree => element.resolvedAst.elements;
261 261
262 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { 262 WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
263 if (world.isProcessed(element)) return const WorldImpact(); 263 if (world.isProcessed(element)) return const WorldImpact();
264 264
265 registry = new CodegenRegistry(compiler, element); 265 registry = new CodegenRegistry(compiler, element);
266 return compiler.codegen(this, world); 266 return compiler.codegen(this, world);
267 } 267 }
268 } 268 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698