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

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

Issue 2500413002: Remove Registry (Closed)
Patch Set: 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/common/codegen.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 15 matching lines...) Expand all
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'
31 show DeserializerPlugin, SerializerPlugin; 31 show DeserializerPlugin, SerializerPlugin;
32 import '../tree/tree.dart' show Node; 32 import '../tree/tree.dart' show Node;
33 import '../universe/world_impact.dart' 33 import '../universe/world_impact.dart'
34 show ImpactStrategy, WorldImpact, WorldImpactBuilder; 34 show ImpactStrategy, WorldImpact, WorldImpactBuilder;
35 import 'codegen.dart' show CodegenWorkItem; 35 import 'codegen.dart' show CodegenWorkItem;
36 import 'registry.dart' show Registry;
37 import 'tasks.dart' show CompilerTask; 36 import 'tasks.dart' show CompilerTask;
38 37
39 abstract class Backend extends Target { 38 abstract class Backend extends Target {
40 final Compiler compiler; 39 final Compiler compiler;
41 40
42 Backend(this.compiler); 41 Backend(this.compiler);
43 42
44 /// Returns true if the backend supports reflection. 43 /// Returns true if the backend supports reflection.
45 bool get supportsReflection; 44 bool get supportsReflection;
46 45
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 FunctionElement helperForBadMain() => null; 308 FunctionElement helperForBadMain() => null;
310 309
311 FunctionElement helperForMissingMain() => null; 310 FunctionElement helperForMissingMain() => null;
312 311
313 FunctionElement helperForMainArity() => null; 312 FunctionElement helperForMainArity() => null;
314 313
315 void forgetElement(Element element) {} 314 void forgetElement(Element element) {}
316 315
317 void registerMainHasArguments(Enqueuer enqueuer) {} 316 void registerMainHasArguments(Enqueuer enqueuer) {}
318 317
319 void registerAsyncMarker(
320 FunctionElement element, Enqueuer enqueuer, Registry registry) {}
321
322 /// Returns the location of the patch-file associated with [libraryName] 318 /// Returns the location of the patch-file associated with [libraryName]
323 /// resolved from [plaformConfigUri]. 319 /// resolved from [plaformConfigUri].
324 /// 320 ///
325 /// Returns null if there is none. 321 /// Returns null if there is none.
326 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); 322 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri);
327 323
328 /// Creates an impact strategy to use for compilation. 324 /// Creates an impact strategy to use for compilation.
329 ImpactStrategy createImpactStrategy( 325 ImpactStrategy createImpactStrategy(
330 {bool supportDeferredLoad: true, 326 {bool supportDeferredLoad: true,
331 bool supportDumpInfo: true, 327 bool supportDumpInfo: true,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 ClassElement get typeImplementation; 394 ClassElement get typeImplementation;
399 ClassElement get boolImplementation; 395 ClassElement get boolImplementation;
400 ClassElement get nullImplementation; 396 ClassElement get nullImplementation;
401 ClassElement get uint32Implementation; 397 ClassElement get uint32Implementation;
402 ClassElement get uint31Implementation; 398 ClassElement get uint31Implementation;
403 ClassElement get positiveIntImplementation; 399 ClassElement get positiveIntImplementation;
404 ClassElement get syncStarIterableImplementation; 400 ClassElement get syncStarIterableImplementation;
405 ClassElement get asyncFutureImplementation; 401 ClassElement get asyncFutureImplementation;
406 ClassElement get asyncStarStreamImplementation; 402 ClassElement get asyncStarStreamImplementation;
407 } 403 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698