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

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

Issue 2511403002: Compute [WorldImpact] for main method as entrypoint (Closed)
Patch Set: Updated cf. comments. Created 4 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/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;
11 import '../common/resolution.dart' show ResolutionImpact, Frontend, Target; 11 import '../common/resolution.dart' show ResolutionImpact, Frontend, Target;
12 import '../compile_time_constants.dart' 12 import '../compile_time_constants.dart'
13 show BackendConstantEnvironment, ConstantCompilerTask; 13 show BackendConstantEnvironment, ConstantCompilerTask;
14 import '../compiler.dart' show Compiler; 14 import '../compiler.dart' show Compiler;
15 import '../constants/constant_system.dart' show ConstantSystem; 15 import '../constants/constant_system.dart' show ConstantSystem;
16 import '../constants/expressions.dart' show ConstantExpression; 16 import '../constants/expressions.dart' show ConstantExpression;
17 import '../constants/values.dart' show ConstantValue; 17 import '../constants/values.dart' show ConstantValue;
18 import '../dart_types.dart' show DartType, InterfaceType; 18 import '../dart_types.dart' show DartType, InterfaceType;
19 import '../elements/elements.dart' 19 import '../elements/elements.dart'
20 show ClassElement, Element, FunctionElement, LibraryElement; 20 show ClassElement, Element, FunctionElement, MethodElement, LibraryElement;
21 import '../enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer; 21 import '../enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer;
22 import '../io/code_output.dart' show CodeBuffer; 22 import '../io/code_output.dart' show CodeBuffer;
23 import '../io/source_information.dart' show SourceInformationStrategy; 23 import '../io/source_information.dart' show SourceInformationStrategy;
24 import '../js_backend/backend_helpers.dart' as js_backend show BackendHelpers; 24 import '../js_backend/backend_helpers.dart' as js_backend show BackendHelpers;
25 import '../js_backend/js_backend.dart' as js_backend; 25 import '../js_backend/js_backend.dart' as js_backend;
26 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; 26 import '../library_loader.dart' show LibraryLoader, LoadedLibraries;
27 import '../native/native.dart' as native show NativeEnqueuer, maybeEnableNative; 27 import '../native/native.dart' as native show NativeEnqueuer, maybeEnableNative;
28 import '../patch_parser.dart' 28 import '../patch_parser.dart'
29 show checkNativeAnnotation, checkJsInteropAnnotation; 29 show checkNativeAnnotation, checkJsInteropAnnotation;
30 import '../serialization/serialization.dart' 30 import '../serialization/serialization.dart'
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 bool shouldOutput(Element element) => true; 306 bool shouldOutput(Element element) => true;
307 307
308 FunctionElement helperForBadMain() => null; 308 FunctionElement helperForBadMain() => null;
309 309
310 FunctionElement helperForMissingMain() => null; 310 FunctionElement helperForMissingMain() => null;
311 311
312 FunctionElement helperForMainArity() => null; 312 FunctionElement helperForMainArity() => null;
313 313
314 void forgetElement(Element element) {} 314 void forgetElement(Element element) {}
315 315
316 void registerMainHasArguments(Enqueuer enqueuer) {} 316 /// Computes the [WorldImpact] of calling [mainMethod] as the entry point.
317 WorldImpact computeMainImpact(Enqueuer enqueuer, MethodElement mainMethod) {}
317 318
318 /// Returns the location of the patch-file associated with [libraryName] 319 /// Returns the location of the patch-file associated with [libraryName]
319 /// resolved from [plaformConfigUri]. 320 /// resolved from [plaformConfigUri].
320 /// 321 ///
321 /// Returns null if there is none. 322 /// Returns null if there is none.
322 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); 323 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri);
323 324
324 /// Creates an impact strategy to use for compilation. 325 /// Creates an impact strategy to use for compilation.
325 ImpactStrategy createImpactStrategy( 326 ImpactStrategy createImpactStrategy(
326 {bool supportDeferredLoad: true, 327 {bool supportDeferredLoad: true,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 ClassElement get typeImplementation; 395 ClassElement get typeImplementation;
395 ClassElement get boolImplementation; 396 ClassElement get boolImplementation;
396 ClassElement get nullImplementation; 397 ClassElement get nullImplementation;
397 ClassElement get uint32Implementation; 398 ClassElement get uint32Implementation;
398 ClassElement get uint31Implementation; 399 ClassElement get uint31Implementation;
399 ClassElement get positiveIntImplementation; 400 ClassElement get positiveIntImplementation;
400 ClassElement get syncStarIterableImplementation; 401 ClassElement get syncStarIterableImplementation;
401 ClassElement get asyncFutureImplementation; 402 ClassElement get asyncFutureImplementation;
402 ClassElement get asyncStarStreamImplementation; 403 ClassElement get asyncStarStreamImplementation;
403 } 404 }
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