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

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

Issue 2370833002: Replace ClosedWorld.backend with ClosedWorld.backendClasses (Closed)
Patch Set: Created 4 years, 2 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
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.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'cache_strategy.dart' show CacheStrategy; 10 import 'cache_strategy.dart' show CacheStrategy;
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 }); 843 });
844 844
845 void processQueue(Enqueuer world, Element main) => 845 void processQueue(Enqueuer world, Element main) =>
846 selfTask.measureSubtask("Compiler.processQueue", () { 846 selfTask.measureSubtask("Compiler.processQueue", () {
847 world.nativeEnqueuer.processNativeClasses(libraryLoader.libraries); 847 world.nativeEnqueuer.processNativeClasses(libraryLoader.libraries);
848 if (main != null && !main.isMalformed) { 848 if (main != null && !main.isMalformed) {
849 FunctionElement mainMethod = main; 849 FunctionElement mainMethod = main;
850 mainMethod.computeType(resolution); 850 mainMethod.computeType(resolution);
851 if (mainMethod.functionSignature.parameterCount != 0) { 851 if (mainMethod.functionSignature.parameterCount != 0) {
852 // The first argument could be a list of strings. 852 // The first argument could be a list of strings.
853 backend.listImplementation.ensureResolved(resolution); 853 backend.backendClasses.listImplementation
854 .ensureResolved(resolution);
854 backend.registerInstantiatedType( 855 backend.registerInstantiatedType(
855 backend.listImplementation.rawType, world, globalDependencies); 856 backend.backendClasses.listImplementation.rawType,
856 backend.stringImplementation.ensureResolved(resolution); 857 world,
858 globalDependencies);
859 backend.backendClasses.stringImplementation
860 .ensureResolved(resolution);
857 backend.registerInstantiatedType( 861 backend.registerInstantiatedType(
858 backend.stringImplementation.rawType, 862 backend.backendClasses.stringImplementation.rawType,
859 world, 863 world,
860 globalDependencies); 864 globalDependencies);
861 865
862 backend.registerMainHasArguments(world); 866 backend.registerMainHasArguments(world);
863 } 867 }
864 world.addToWorkList(main); 868 world.addToWorkList(main);
865 } 869 }
866 if (options.verbose) { 870 if (options.verbose) {
867 progress.reset(); 871 progress.reset();
868 } 872 }
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 _ElementScanner(this.scanner); 2245 _ElementScanner(this.scanner);
2242 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); 2246 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library);
2243 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); 2247 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit);
2244 } 2248 }
2245 2249
2246 class _EmptyEnvironment implements Environment { 2250 class _EmptyEnvironment implements Environment {
2247 const _EmptyEnvironment(); 2251 const _EmptyEnvironment();
2248 2252
2249 String valueOf(String key) => null; 2253 String valueOf(String key) => null;
2250 } 2254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698