| 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 js_backend.backend; | 5 library js_backend.backend; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 10 | 10 |
| 11 import '../closure.dart'; | 11 import '../closure.dart'; |
| 12 import '../common.dart'; | 12 import '../common.dart'; |
| 13 import '../common/backend_api.dart' | 13 import '../common/backend_api.dart' |
| 14 show Backend, ImpactTransformer, ForeignResolver, NativeRegistry; | 14 show Backend, ImpactTransformer, ForeignResolver, NativeRegistry; |
| 15 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; | 15 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; |
| 16 import '../common/names.dart' show Identifiers, Selectors, Uris; | 16 import '../common/names.dart' show Identifiers, Selectors, Uris; |
| 17 import '../common/registry.dart' show EagerRegistry, Registry; | 17 import '../common/registry.dart' show EagerRegistry, Registry; |
| 18 import '../common/resolution.dart' | 18 import '../common/resolution.dart' |
| 19 show | 19 show |
| 20 Feature, | |
| 21 Frontend, | 20 Frontend, |
| 22 ListLiteralUse, | |
| 23 MapLiteralUse, | |
| 24 Resolution, | 21 Resolution, |
| 25 ResolutionImpact; | 22 ResolutionImpact; |
| 26 import '../common/tasks.dart' show CompilerTask; | 23 import '../common/tasks.dart' show CompilerTask; |
| 27 import '../common/work.dart' show ItemCompilationContext; | 24 import '../common/work.dart' show ItemCompilationContext; |
| 28 import '../compiler.dart' show Compiler; | 25 import '../compiler.dart' show Compiler; |
| 29 import '../constants/constant_system.dart'; | 26 import '../constants/constant_system.dart'; |
| 30 import '../constants/expressions.dart'; | 27 import '../constants/expressions.dart'; |
| 31 import '../constants/values.dart'; | 28 import '../constants/values.dart'; |
| 32 import '../core_types.dart' show CoreClasses, CoreTypes; | 29 import '../core_types.dart' show CoreClasses, CoreTypes; |
| 33 import '../dart_types.dart'; | 30 import '../dart_types.dart'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 48 import '../native/native.dart' as native; | 45 import '../native/native.dart' as native; |
| 49 import '../ssa/builder.dart' show SsaFunctionCompiler; | 46 import '../ssa/builder.dart' show SsaFunctionCompiler; |
| 50 import '../ssa/nodes.dart' show HInstruction; | 47 import '../ssa/nodes.dart' show HInstruction; |
| 51 import '../tree/tree.dart'; | 48 import '../tree/tree.dart'; |
| 52 import '../types/types.dart'; | 49 import '../types/types.dart'; |
| 53 import '../universe/call_structure.dart' show CallStructure; | 50 import '../universe/call_structure.dart' show CallStructure; |
| 54 import '../universe/selector.dart' show Selector, SelectorKind; | 51 import '../universe/selector.dart' show Selector, SelectorKind; |
| 55 import '../universe/universe.dart'; | 52 import '../universe/universe.dart'; |
| 56 import '../universe/use.dart' | 53 import '../universe/use.dart' |
| 57 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; | 54 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; |
| 55 import '../universe/feature.dart'; |
| 58 import '../universe/world_impact.dart' | 56 import '../universe/world_impact.dart' |
| 59 show | 57 show |
| 60 ImpactStrategy, | 58 ImpactStrategy, |
| 61 ImpactUseCase, | 59 ImpactUseCase, |
| 62 TransformedWorldImpact, | 60 TransformedWorldImpact, |
| 63 WorldImpact, | 61 WorldImpact, |
| 64 WorldImpactVisitor; | 62 WorldImpactVisitor; |
| 65 import '../util/util.dart'; | 63 import '../util/util.dart'; |
| 66 import '../world.dart' show ClassWorld; | 64 import '../world.dart' show ClassWorld; |
| 67 import 'backend_helpers.dart'; | 65 import 'backend_helpers.dart'; |
| (...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3196 | 3194 |
| 3197 @override | 3195 @override |
| 3198 void onImpactUsed(ImpactUseCase impactUse) { | 3196 void onImpactUsed(ImpactUseCase impactUse) { |
| 3199 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { | 3197 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { |
| 3200 // TODO(johnniwinther): Allow emptying when serialization has been | 3198 // TODO(johnniwinther): Allow emptying when serialization has been |
| 3201 // performed. | 3199 // performed. |
| 3202 resolution.emptyCache(); | 3200 resolution.emptyCache(); |
| 3203 } | 3201 } |
| 3204 } | 3202 } |
| 3205 } | 3203 } |
| OLD | NEW |