| 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 js_backend.backend.impact_transformer; | 5 library js_backend.backend.impact_transformer; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common_elements.dart'; | 8 import '../common_elements.dart'; |
| 9 import '../common/backend_api.dart' show ImpactTransformer; | 9 import '../common/backend_api.dart' show ImpactTransformer; |
| 10 import '../common/codegen.dart' show CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
| 11 import '../common/resolution.dart' show ResolutionImpact; | 11 import '../common/resolution.dart' show ResolutionImpact; |
| 12 import '../constants/expressions.dart'; | 12 import '../constants/expressions.dart'; |
| 13 import '../common_elements.dart' show ElementEnvironment; | 13 import '../common_elements.dart' show ElementEnvironment; |
| 14 import '../elements/elements.dart' show AsyncMarker; | 14 import '../elements/elements.dart' show AsyncMarker; |
| 15 import '../elements/entities.dart'; | 15 import '../elements/entities.dart'; |
| 16 import '../elements/resolution_types.dart' show Types; | 16 import '../elements/resolution_types.dart' show Types; |
| 17 import '../elements/types.dart'; | 17 import '../elements/types.dart'; |
| 18 import '../native/enqueue.dart'; | 18 import '../native/enqueue.dart'; |
| 19 import '../native/native.dart' as native; | 19 import '../native/native.dart' as native; |
| 20 import '../options.dart'; | 20 import '../options.dart'; |
| 21 import '../universe/feature.dart'; | 21 import '../universe/feature.dart'; |
| 22 import '../universe/use.dart' | 22 import '../universe/use.dart' |
| 23 show StaticUse, StaticUseKind, TypeUse, TypeUseKind; | 23 show StaticUse, StaticUseKind, TypeUse, TypeUseKind; |
| 24 import '../universe/world_impact.dart' show TransformedWorldImpact, WorldImpact; | 24 import '../universe/world_impact.dart' show TransformedWorldImpact, WorldImpact; |
| 25 import '../util/util.dart'; | 25 import '../util/util.dart'; |
| 26 import 'backend.dart'; | |
| 27 import 'backend_impact.dart'; | 26 import 'backend_impact.dart'; |
| 28 import 'backend_usage.dart'; | 27 import 'backend_usage.dart'; |
| 29 import 'checked_mode_helpers.dart'; | 28 import 'checked_mode_helpers.dart'; |
| 30 import 'custom_elements_analysis.dart'; | 29 import 'custom_elements_analysis.dart'; |
| 31 import 'interceptor_data.dart'; | 30 import 'interceptor_data.dart'; |
| 32 import 'lookup_map_analysis.dart'; | 31 import 'lookup_map_analysis.dart'; |
| 33 import 'mirrors_data.dart'; | 32 import 'mirrors_data.dart'; |
| 34 import 'namer.dart'; | 33 import 'namer.dart'; |
| 35 import 'native_data.dart'; | 34 import 'native_data.dart'; |
| 35 import 'runtime_types.dart'; |
| 36 | 36 |
| 37 class JavaScriptImpactTransformer extends ImpactTransformer { | 37 class JavaScriptImpactTransformer extends ImpactTransformer { |
| 38 final CompilerOptions _options; | 38 final CompilerOptions _options; |
| 39 final ElementEnvironment _elementEnvironment; | 39 final ElementEnvironment _elementEnvironment; |
| 40 final CommonElements _commonElements; | 40 final CommonElements _commonElements; |
| 41 final BackendImpacts _impacts; | 41 final BackendImpacts _impacts; |
| 42 final NativeBasicData _nativeBasicData; | 42 final NativeBasicData _nativeBasicData; |
| 43 final NativeResolutionEnqueuer _nativeResolutionEnqueuer; | 43 final NativeResolutionEnqueuer _nativeResolutionEnqueuer; |
| 44 final BackendUsageBuilder _backendUsageBuider; | 44 final BackendUsageBuilder _backendUsageBuider; |
| 45 final MirrorsDataBuilder _mirrorsDataBuilder; | 45 final MirrorsDataBuilder _mirrorsDataBuilder; |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 _impacts.asyncStarBody | 467 _impacts.asyncStarBody |
| 468 .registerImpact(transformed, _elementEnvironment); | 468 .registerImpact(transformed, _elementEnvironment); |
| 469 break; | 469 break; |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 | 472 |
| 473 // TODO(johnniwinther): Remove eager registration. | 473 // TODO(johnniwinther): Remove eager registration. |
| 474 return transformed; | 474 return transformed; |
| 475 } | 475 } |
| 476 } | 476 } |
| OLD | NEW |