| OLD | NEW |
| 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 | 730 |
| 731 backend.onCodegenEnd(); | 731 backend.onCodegenEnd(); |
| 732 | 732 |
| 733 checkQueues(); | 733 checkQueues(); |
| 734 }); | 734 }); |
| 735 | 735 |
| 736 /// Perform the steps needed to fully end the resolution phase. | 736 /// Perform the steps needed to fully end the resolution phase. |
| 737 ClosedWorldRefiner closeResolution() { | 737 ClosedWorldRefiner closeResolution() { |
| 738 phase = PHASE_DONE_RESOLVING; | 738 phase = PHASE_DONE_RESOLVING; |
| 739 | 739 |
| 740 ClosedWorldImpl world = resolverWorld.openWorld.closeWorld(reporter); | 740 ClosedWorldImpl world = resolverWorld.closeWorld(reporter); |
| 741 // Compute whole-program-knowledge that the backend needs. (This might | 741 // Compute whole-program-knowledge that the backend needs. (This might |
| 742 // require the information computed in [world.closeWorld].) | 742 // require the information computed in [world.closeWorld].) |
| 743 backend.onResolutionComplete(world, world); | 743 backend.onResolutionComplete(world, world); |
| 744 | 744 |
| 745 deferredLoadTask.onResolutionComplete(mainFunction); | 745 deferredLoadTask.onResolutionComplete(mainFunction); |
| 746 | 746 |
| 747 // TODO(johnniwinther): Move this after rti computation but before | 747 // TODO(johnniwinther): Move this after rti computation but before |
| 748 // reflection members computation, and (re-)close the world afterwards. | 748 // reflection members computation, and (re-)close the world afterwards. |
| 749 closureToClassMapper.createClosureClasses(world); | 749 closureToClassMapper.createClosureClasses(world); |
| 750 return world; | 750 return world; |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1948 _compiler.mirrorUsageAnalyzerTask; | 1948 _compiler.mirrorUsageAnalyzerTask; |
| 1949 | 1949 |
| 1950 @override | 1950 @override |
| 1951 LibraryElement get coreLibrary => _compiler._coreTypes.coreLibrary; | 1951 LibraryElement get coreLibrary => _compiler._coreTypes.coreLibrary; |
| 1952 | 1952 |
| 1953 @override | 1953 @override |
| 1954 bool get wasProxyConstantComputedTestingOnly => _proxyConstant != null; | 1954 bool get wasProxyConstantComputedTestingOnly => _proxyConstant != null; |
| 1955 | 1955 |
| 1956 @override | 1956 @override |
| 1957 void registerClass(ClassElement cls) { | 1957 void registerClass(ClassElement cls) { |
| 1958 enqueuer.universe.openWorld.registerClass(cls); | 1958 enqueuer.universe.registerClass(cls); |
| 1959 } | 1959 } |
| 1960 | 1960 |
| 1961 @override | 1961 @override |
| 1962 void resolveClass(ClassElement cls) { | 1962 void resolveClass(ClassElement cls) { |
| 1963 _compiler.resolver.resolveClass(cls); | 1963 _compiler.resolver.resolveClass(cls); |
| 1964 } | 1964 } |
| 1965 | 1965 |
| 1966 @override | 1966 @override |
| 1967 void resolveTypedef(TypedefElement typdef) { | 1967 void resolveTypedef(TypedefElement typdef) { |
| 1968 _compiler.resolver.resolve(typdef); | 1968 _compiler.resolver.resolve(typdef); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 _ElementScanner(this.scanner); | 2220 _ElementScanner(this.scanner); |
| 2221 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2221 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2222 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2222 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2223 } | 2223 } |
| 2224 | 2224 |
| 2225 class _EmptyEnvironment implements Environment { | 2225 class _EmptyEnvironment implements Environment { |
| 2226 const _EmptyEnvironment(); | 2226 const _EmptyEnvironment(); |
| 2227 | 2227 |
| 2228 String valueOf(String key) => null; | 2228 String valueOf(String key) => null; |
| 2229 } | 2229 } |
| OLD | NEW |