| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.kernel.frontend_strategy; | 5 library dart2js.kernel.frontend_strategy; |
| 6 | 6 |
| 7 import '../closure.dart'; | 7 import '../closure.dart'; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common_elements.dart'; | 9 import '../common_elements.dart'; |
| 10 import '../common/backend_api.dart'; | 10 import '../common/backend_api.dart'; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 @override | 62 @override |
| 63 ElementEnvironment get elementEnvironment => elementMap.elementEnvironment; | 63 ElementEnvironment get elementEnvironment => elementMap.elementEnvironment; |
| 64 | 64 |
| 65 @override | 65 @override |
| 66 AnnotationProcessor get annotationProcesser => | 66 AnnotationProcessor get annotationProcesser => |
| 67 _annotationProcesser ??= new KernelAnnotationProcessor(elementMap); | 67 _annotationProcesser ??= new KernelAnnotationProcessor(elementMap); |
| 68 | 68 |
| 69 @override | 69 @override |
| 70 NativeClassFinder createNativeClassResolver(NativeBasicData nativeBasicData) { | 70 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData) { |
| 71 return new BaseNativeClassFinder(elementMap.elementEnvironment, | 71 return new BaseNativeClassFinder(elementMap.elementEnvironment, |
| 72 elementMap.commonElements, nativeBasicData); | 72 elementMap.commonElements, nativeBasicData); |
| 73 } | 73 } |
| 74 | 74 |
| 75 NoSuchMethodResolver createNoSuchMethodResolver() { | 75 NoSuchMethodResolver createNoSuchMethodResolver() { |
| 76 return new KernelNoSuchMethodResolver(elementMap); | 76 return new KernelNoSuchMethodResolver(elementMap); |
| 77 } | 77 } |
| 78 | 78 |
| 79 /// Computes the main function from [mainLibrary] adding additional world |
| 80 /// impact to [impactBuilder]. |
| 81 FunctionEntity computeMain( |
| 82 LibraryEntity mainLibrary, WorldImpactBuilder impactBuilder) { |
| 83 return elementEnvironment.mainFunction; |
| 84 } |
| 85 |
| 79 CustomElementsResolutionAnalysis createCustomElementsResolutionAnalysis( | 86 CustomElementsResolutionAnalysis createCustomElementsResolutionAnalysis( |
| 80 NativeBasicData nativeBasicData, | 87 NativeBasicData nativeBasicData, |
| 81 BackendUsageBuilder backendUsageBuilder) { | 88 BackendUsageBuilder backendUsageBuilder) { |
| 82 return new CustomElementsResolutionAnalysisImpl(); | 89 return new CustomElementsResolutionAnalysisImpl(); |
| 83 } | 90 } |
| 84 | 91 |
| 85 MirrorsDataBuilder createMirrorsDataBuilder() { | 92 MirrorsDataBuilder createMirrorsDataBuilder() { |
| 86 return new MirrorsDataBuilderImpl(); | 93 return new MirrorsDataBuilderImpl(); |
| 87 } | 94 } |
| 88 | 95 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) {} | 217 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) {} |
| 211 | 218 |
| 212 @override | 219 @override |
| 213 MirrorsCodegenAnalysis close() { | 220 MirrorsCodegenAnalysis close() { |
| 214 throw new UnimplementedError('MirrorsResolutionAnalysisImpl.close'); | 221 throw new UnimplementedError('MirrorsResolutionAnalysisImpl.close'); |
| 215 } | 222 } |
| 216 | 223 |
| 217 @override | 224 @override |
| 218 void onResolutionComplete() {} | 225 void onResolutionComplete() {} |
| 219 } | 226 } |
| OLD | NEW |