OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.js_emitter; | 5 library dart2js.js_emitter; |
6 | 6 |
7 import 'package:js_ast/src/precedence.dart' as js_precedence; | 7 import 'package:js_ast/src/precedence.dart' as js_precedence; |
8 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 8 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
9 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; | 9 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; |
10 | 10 |
11 | |
12 import '../common.dart'; | 11 import '../common.dart'; |
13 import '../common/names.dart' show | 12 import '../common/names.dart' show Identifiers; |
14 Identifiers; | 13 import '../common/tasks.dart' show CompilerTask; |
15 import '../common/tasks.dart' show | 14 import '../compiler.dart' show Compiler; |
16 CompilerTask; | |
17 import '../compiler.dart' show | |
18 Compiler; | |
19 import '../constants/values.dart'; | 15 import '../constants/values.dart'; |
20 import '../closure.dart' show | 16 import '../closure.dart' |
21 ClosureClassElement, | 17 show |
22 ClosureClassMap, | 18 ClosureClassElement, |
23 ClosureFieldElement, | 19 ClosureClassMap, |
24 CapturedVariable; | 20 ClosureFieldElement, |
25 import '../core_types.dart' show | 21 CapturedVariable; |
26 CoreClasses; | 22 import '../core_types.dart' show CoreClasses; |
27 import '../dart_types.dart' show | 23 import '../dart_types.dart' |
28 DartType, | 24 show |
29 FunctionType, | 25 DartType, |
30 InterfaceType, | 26 FunctionType, |
31 TypedefType, | 27 InterfaceType, |
32 Types, | 28 TypedefType, |
33 TypeVariableType; | 29 Types, |
34 import '../deferred_load.dart' show | 30 TypeVariableType; |
35 OutputUnit; | 31 import '../deferred_load.dart' show OutputUnit; |
36 import '../elements/elements.dart' show | 32 import '../elements/elements.dart' |
37 ClassElement, | 33 show |
38 ConstructorBodyElement, | 34 ClassElement, |
39 ConstructorElement, | 35 ConstructorBodyElement, |
40 Element, | 36 ConstructorElement, |
41 Elements, | 37 Element, |
42 ElementKind, | 38 Elements, |
43 FieldElement, | 39 ElementKind, |
44 FunctionElement, | 40 FieldElement, |
45 FunctionSignature, | 41 FunctionElement, |
46 MetadataAnnotation, | 42 FunctionSignature, |
47 MethodElement, | 43 MetadataAnnotation, |
48 MemberElement, | 44 MethodElement, |
49 MixinApplicationElement, | 45 MemberElement, |
50 ParameterElement, | 46 MixinApplicationElement, |
51 TypeVariableElement; | 47 ParameterElement, |
| 48 TypeVariableElement; |
52 import '../js/js.dart' as jsAst; | 49 import '../js/js.dart' as jsAst; |
53 import '../js/js.dart' show js; | 50 import '../js/js.dart' show js; |
54 import '../js_backend/backend_helpers.dart' show | 51 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
55 BackendHelpers; | 52 import '../js_backend/js_backend.dart' |
56 import '../js_backend/js_backend.dart' show | 53 show |
57 CheckedModeHelper, | 54 CheckedModeHelper, |
58 CompoundName, | 55 CompoundName, |
59 ConstantEmitter, | 56 ConstantEmitter, |
60 CustomElementsAnalysis, | 57 CustomElementsAnalysis, |
61 GetterName, | 58 GetterName, |
62 JavaScriptBackend, | 59 JavaScriptBackend, |
63 JavaScriptConstantCompiler, | 60 JavaScriptConstantCompiler, |
64 Namer, | 61 Namer, |
65 RuntimeTypes, | 62 RuntimeTypes, |
66 RuntimeTypesEncoder, | 63 RuntimeTypesEncoder, |
67 SetterName, | 64 SetterName, |
68 Substitution, | 65 Substitution, |
69 TypeCheck, | 66 TypeCheck, |
70 TypeChecks, | 67 TypeChecks, |
71 TypeVariableHandler; | 68 TypeVariableHandler; |
72 import '../universe/call_structure.dart' show | 69 import '../universe/call_structure.dart' show CallStructure; |
73 CallStructure; | 70 import '../universe/selector.dart' show Selector; |
74 import '../universe/selector.dart' show | 71 import '../universe/universe.dart' show SelectorConstraints; |
75 Selector; | 72 import '../util/util.dart' show Setlet; |
76 import '../universe/universe.dart' show | |
77 SelectorConstraints; | |
78 import '../util/util.dart' show | |
79 Setlet; | |
80 | |
81 | 73 |
82 import 'full_emitter/emitter.dart' as full_js_emitter; | 74 import 'full_emitter/emitter.dart' as full_js_emitter; |
83 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; | 75 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; |
84 import 'model.dart'; | 76 import 'model.dart'; |
85 import 'program_builder/program_builder.dart'; | 77 import 'program_builder/program_builder.dart'; |
86 import 'startup_emitter/emitter.dart' as startup_js_emitter; | 78 import 'startup_emitter/emitter.dart' as startup_js_emitter; |
87 | 79 |
88 part 'class_stub_generator.dart'; | 80 part 'class_stub_generator.dart'; |
89 part 'code_emitter_task.dart'; | 81 part 'code_emitter_task.dart'; |
90 part 'helpers.dart'; | 82 part 'helpers.dart'; |
91 part 'interceptor_stub_generator.dart'; | 83 part 'interceptor_stub_generator.dart'; |
92 part 'main_call_stub_generator.dart'; | 84 part 'main_call_stub_generator.dart'; |
93 part 'metadata_collector.dart'; | 85 part 'metadata_collector.dart'; |
94 part 'native_emitter.dart'; | 86 part 'native_emitter.dart'; |
95 part 'native_generator.dart'; | 87 part 'native_generator.dart'; |
96 part 'parameter_stub_generator.dart'; | 88 part 'parameter_stub_generator.dart'; |
97 part 'runtime_type_generator.dart'; | 89 part 'runtime_type_generator.dart'; |
98 part 'type_test_registry.dart'; | 90 part 'type_test_registry.dart'; |
OLD | NEW |