| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import '../common/backend_api.dart'; | 5 import '../common/backend_api.dart'; |
| 6 import '../common_elements.dart' show CommonElements, ElementEnvironment; | 6 import '../common_elements.dart' show CommonElements, ElementEnvironment; |
| 7 import '../elements/elements.dart'; | 7 import '../elements/elements.dart'; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/resolution_types.dart'; | 9 import '../elements/resolution_types.dart'; |
| 10 import '../elements/types.dart'; | 10 import '../elements/types.dart'; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 : super(options, elementEnvironment, commonElements, helpers, | 206 : super(options, elementEnvironment, commonElements, helpers, |
| 207 backendClasses); | 207 backendClasses); |
| 208 | 208 |
| 209 void _registerBackendUse(FunctionEntity element) { | 209 void _registerBackendUse(FunctionEntity element) { |
| 210 _backendUsageBuilder.registerBackendFunctionUse(element); | 210 _backendUsageBuilder.registerBackendFunctionUse(element); |
| 211 _backendUsageBuilder.registerGlobalFunctionDependency(element); | 211 _backendUsageBuilder.registerGlobalFunctionDependency(element); |
| 212 } | 212 } |
| 213 | 213 |
| 214 WorldImpact processNativeClasses(Iterable<LibraryEntity> libraries) { | 214 WorldImpact processNativeClasses(Iterable<LibraryEntity> libraries) { |
| 215 WorldImpactBuilderImpl impactBuilder = new WorldImpactBuilderImpl(); | 215 WorldImpactBuilderImpl impactBuilder = new WorldImpactBuilderImpl(); |
| 216 Set<ClassEntity> nativeClasses = | 216 Iterable<ClassEntity> nativeClasses = |
| 217 _nativeClassResolver.computeNativeClasses(libraries); | 217 _nativeClassResolver.computeNativeClasses(libraries); |
| 218 _nativeClasses.addAll(nativeClasses); | 218 _nativeClasses.addAll(nativeClasses); |
| 219 _unusedClasses.addAll(nativeClasses); | 219 _unusedClasses.addAll(nativeClasses); |
| 220 if (!enableLiveTypeAnalysis) { | 220 if (!enableLiveTypeAnalysis) { |
| 221 _registerTypeUses(impactBuilder, _nativeClasses, 'forced'); | 221 _registerTypeUses(impactBuilder, _nativeClasses, 'forced'); |
| 222 } | 222 } |
| 223 return impactBuilder; | 223 return impactBuilder; |
| 224 } | 224 } |
| 225 | 225 |
| 226 void logSummary(void log(String message)) { | 226 void logSummary(void log(String message)) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]); | 311 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]); |
| 312 directSubtypes.add(cls); | 312 directSubtypes.add(cls); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void logSummary(void log(String message)) { | 315 void logSummary(void log(String message)) { |
| 316 super.logSummary(log); | 316 super.logSummary(log); |
| 317 log('Compiled ${_registeredClasses.length} native classes, ' | 317 log('Compiled ${_registeredClasses.length} native classes, ' |
| 318 '${_unusedClasses.length} native classes omitted.'); | 318 '${_unusedClasses.length} native classes omitted.'); |
| 319 } | 319 } |
| 320 } | 320 } |
| OLD | NEW |