| 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; | 5 library js_backend; |
| 6 | 6 |
| 7 import 'dart:async' show EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
| 8 import 'dart:collection' show HashMap; | 8 import 'dart:collection' show HashMap; |
| 9 | 9 |
| 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 11 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName; | 11 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName; |
| 12 | 12 |
| 13 import '../closure.dart'; | 13 import '../closure.dart'; |
| 14 import '../common.dart'; | 14 import '../common.dart'; |
| 15 import '../common/backend_api.dart' show | 15 import '../common/backend_api.dart' show |
| 16 Backend, | 16 Backend, |
| 17 ImpactTransformer, |
| 17 ForeignResolver; | 18 ForeignResolver; |
| 18 import '../common/codegen.dart' show | 19 import '../common/codegen.dart' show |
| 20 CodegenImpact, |
| 19 CodegenRegistry, | 21 CodegenRegistry, |
| 20 CodegenWorkItem; | 22 CodegenWorkItem; |
| 21 import '../common/names.dart' show | 23 import '../common/names.dart' show |
| 22 Identifiers, | 24 Identifiers, |
| 23 Selectors, | 25 Selectors, |
| 24 Uris; | 26 Uris; |
| 25 import '../common/registry.dart' show | 27 import '../common/registry.dart' show |
| 28 EagerRegistry, |
| 26 Registry; | 29 Registry; |
| 27 import '../common/tasks.dart' show | 30 import '../common/tasks.dart' show |
| 28 CompilerTask; | 31 CompilerTask; |
| 29 import '../common/resolution.dart' show | 32 import '../common/resolution.dart' show |
| 30 Feature, | 33 Feature, |
| 31 ListLiteralUse, | 34 ListLiteralUse, |
| 32 MapLiteralUse, | 35 MapLiteralUse, |
| 33 Resolution, | 36 Resolution, |
| 34 ResolutionCallbacks, | 37 ResolutionImpact; |
| 35 ResolutionImpact, | |
| 36 TransformedWorldImpact; | |
| 37 import '../common/work.dart' show | 38 import '../common/work.dart' show |
| 38 ItemCompilationContext; | 39 ItemCompilationContext; |
| 39 import '../compiler.dart' show | 40 import '../compiler.dart' show |
| 40 Compiler; | 41 Compiler; |
| 41 import '../compile_time_constants.dart'; | 42 import '../compile_time_constants.dart'; |
| 42 import '../constants/constant_system.dart'; | 43 import '../constants/constant_system.dart'; |
| 43 import '../constants/expressions.dart'; | 44 import '../constants/expressions.dart'; |
| 44 import '../constants/values.dart'; | 45 import '../constants/values.dart'; |
| 45 import '../dart_types.dart'; | 46 import '../dart_types.dart'; |
| 46 import '../elements/elements.dart'; | 47 import '../elements/elements.dart'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 JavaScriptSourceInformationStrategy; | 64 JavaScriptSourceInformationStrategy; |
| 64 import '../js/rewrite_async.dart'; | 65 import '../js/rewrite_async.dart'; |
| 65 import '../js_emitter/js_emitter.dart' show | 66 import '../js_emitter/js_emitter.dart' show |
| 66 CodeEmitterTask, | 67 CodeEmitterTask, |
| 67 Emitter, | 68 Emitter, |
| 68 MetadataCollector, | 69 MetadataCollector, |
| 69 Placeholder, | 70 Placeholder, |
| 70 USE_LAZY_EMITTER; | 71 USE_LAZY_EMITTER; |
| 71 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; | 72 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; |
| 72 import '../native/native.dart' as native; | 73 import '../native/native.dart' as native; |
| 73 import '../patch_parser.dart' show | |
| 74 checkJsInteropAnnotation; | |
| 75 import '../resolution/registry.dart' show | |
| 76 EagerRegistry; | |
| 77 import '../resolution/tree_elements.dart' show | 74 import '../resolution/tree_elements.dart' show |
| 78 TreeElements; | 75 TreeElements; |
| 79 import '../ssa/ssa.dart'; | 76 import '../ssa/ssa.dart'; |
| 80 import '../tree/tree.dart'; | 77 import '../tree/tree.dart'; |
| 81 import '../types/types.dart'; | 78 import '../types/types.dart'; |
| 82 import '../universe/call_structure.dart' show | 79 import '../universe/call_structure.dart' show |
| 83 CallStructure; | 80 CallStructure; |
| 84 import '../universe/selector.dart' show | 81 import '../universe/selector.dart' show |
| 85 Selector, | 82 Selector, |
| 86 SelectorKind; | 83 SelectorKind; |
| 87 import '../universe/universe.dart'; | 84 import '../universe/universe.dart'; |
| 88 import '../universe/world_impact.dart' show | 85 import '../universe/world_impact.dart' show |
| 86 TransformedWorldImpact, |
| 89 WorldImpact; | 87 WorldImpact; |
| 90 import '../util/characters.dart'; | 88 import '../util/characters.dart'; |
| 91 import '../util/util.dart'; | 89 import '../util/util.dart'; |
| 92 import '../world.dart' show | 90 import '../world.dart' show |
| 93 ClassWorld; | 91 ClassWorld; |
| 94 | 92 |
| 95 import 'backend_helpers.dart'; | 93 import 'backend_helpers.dart'; |
| 96 import 'backend_impact.dart'; | 94 import 'backend_impact.dart'; |
| 97 import 'codegen/task.dart'; | 95 import 'codegen/task.dart'; |
| 98 import 'constant_system_javascript.dart'; | 96 import 'constant_system_javascript.dart'; |
| 99 import 'patch_resolver.dart'; | 97 import 'patch_resolver.dart'; |
| 100 import 'js_interop_analysis.dart' show JsInteropAnalysis; | 98 import 'js_interop_analysis.dart' show JsInteropAnalysis; |
| 101 import 'lookup_map_analysis.dart' show LookupMapAnalysis; | 99 import 'lookup_map_analysis.dart' show LookupMapAnalysis; |
| 102 | 100 |
| 103 part 'backend.dart'; | 101 part 'backend.dart'; |
| 104 part 'checked_mode_helpers.dart'; | 102 part 'checked_mode_helpers.dart'; |
| 105 part 'constant_emitter.dart'; | 103 part 'constant_emitter.dart'; |
| 106 part 'constant_handler_javascript.dart'; | 104 part 'constant_handler_javascript.dart'; |
| 107 part 'custom_elements_analysis.dart'; | 105 part 'custom_elements_analysis.dart'; |
| 108 part 'frequency_namer.dart'; | 106 part 'frequency_namer.dart'; |
| 109 part 'field_naming_mixin.dart'; | 107 part 'field_naming_mixin.dart'; |
| 110 part 'minify_namer.dart'; | 108 part 'minify_namer.dart'; |
| 111 part 'namer.dart'; | 109 part 'namer.dart'; |
| 112 part 'namer_names.dart'; | 110 part 'namer_names.dart'; |
| 113 part 'no_such_method_registry.dart'; | 111 part 'no_such_method_registry.dart'; |
| 114 part 'runtime_types.dart'; | 112 part 'runtime_types.dart'; |
| 115 part 'type_variable_handler.dart'; | 113 part 'type_variable_handler.dart'; |
| OLD | NEW |