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

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

Issue 2575083002: Pass ClosedWorld directly to codegen tasks (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/compiler.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.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/codegen.dart' show CodegenImpact; 10 import '../common/codegen.dart' show CodegenImpact;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 /// Called after the queue is closed. [onQueueEmpty] may be called multiple 308 /// Called after the queue is closed. [onQueueEmpty] may be called multiple
309 /// times, but [onQueueClosed] is only called once. 309 /// times, but [onQueueClosed] is only called once.
310 void onQueueClosed() {} 310 void onQueueClosed() {}
311 311
312 /// Called when the compiler starts running the codegen enqueuer. The 312 /// Called when the compiler starts running the codegen enqueuer. The
313 /// [WorldImpact] of enabled backend features is returned. 313 /// [WorldImpact] of enabled backend features is returned.
314 WorldImpact onCodegenStart(ClosedWorld closedWorld) => const WorldImpact(); 314 WorldImpact onCodegenStart(ClosedWorld closedWorld) => const WorldImpact();
315 315
316 /// Called when code generation has been completed.
317 void onCodegenEnd();
Siggi Cherem (dart-lang) 2016/12/15 19:24:47 ; => {} (most other code in this class just has a
Johnni Winther 2016/12/16 09:17:00 Done.
318
316 // Does this element belong in the output 319 // Does this element belong in the output
317 bool shouldOutput(Element element) => true; 320 bool shouldOutput(Element element) => true;
318 321
319 FunctionElement helperForBadMain() => null; 322 FunctionElement helperForBadMain() => null;
320 323
321 FunctionElement helperForMissingMain() => null; 324 FunctionElement helperForMissingMain() => null;
322 325
323 FunctionElement helperForMainArity() => null; 326 FunctionElement helperForMainArity() => null;
324 327
325 void forgetElement(Element element) {} 328 void forgetElement(Element element) {}
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 ClassElement get asyncFutureImplementation; 419 ClassElement get asyncFutureImplementation;
417 ClassElement get asyncStarStreamImplementation; 420 ClassElement get asyncStarStreamImplementation;
418 ClassElement get indexableImplementation; 421 ClassElement get indexableImplementation;
419 ClassElement get mutableIndexableImplementation; 422 ClassElement get mutableIndexableImplementation;
420 ClassElement get indexingBehaviorImplementation; 423 ClassElement get indexingBehaviorImplementation;
421 424
422 bool isDefaultEqualityImplementation(Element element); 425 bool isDefaultEqualityImplementation(Element element);
423 bool isInterceptorClass(ClassElement cls); 426 bool isInterceptorClass(ClassElement cls);
424 bool isNative(Element element); 427 bool isNative(Element element);
425 } 428 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698