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 library dart2js.js_emitter.program_builder; | 5 library dart2js.js_emitter.program_builder; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:convert' show JSON; | 8 import 'dart:convert' show JSON; |
9 | 9 |
10 import '../../closure.dart' show ClosureTask, ClosureFieldElement; | 10 import '../../closure.dart' show ClosureTask, ClosureFieldElement; |
(...skipping 16 matching lines...) Expand all Loading... |
27 MemberElement, | 27 MemberElement, |
28 MethodElement, | 28 MethodElement, |
29 ParameterElement, | 29 ParameterElement, |
30 TypedefElement, | 30 TypedefElement, |
31 VariableElement; | 31 VariableElement; |
32 import '../../elements/entities.dart'; | 32 import '../../elements/entities.dart'; |
33 import '../../elements/resolution_types.dart' | 33 import '../../elements/resolution_types.dart' |
34 show ResolutionDartType, ResolutionFunctionType, ResolutionTypedefType; | 34 show ResolutionDartType, ResolutionFunctionType, ResolutionTypedefType; |
35 import '../../elements/types.dart' show DartType, DartTypes; | 35 import '../../elements/types.dart' show DartType, DartTypes; |
36 import '../../js/js.dart' as js; | 36 import '../../js/js.dart' as js; |
37 import '../../js_backend/backend.dart' | 37 import '../../js_backend/backend.dart' show SuperMemberData; |
38 show | |
39 RuntimeTypesChecks, | |
40 RuntimeTypesNeed, | |
41 RuntimeTypesEncoder, | |
42 RuntimeTypesSubstitutions, | |
43 SuperMemberData; | |
44 import '../../js_backend/backend_usage.dart'; | 38 import '../../js_backend/backend_usage.dart'; |
45 import '../../js_backend/constant_handler_javascript.dart' | 39 import '../../js_backend/constant_handler_javascript.dart' |
46 show JavaScriptConstantCompiler; | 40 show JavaScriptConstantCompiler; |
47 import '../../js_backend/custom_elements_analysis.dart'; | 41 import '../../js_backend/custom_elements_analysis.dart'; |
48 import '../../js_backend/namer.dart' show Namer, StringBackedName; | 42 import '../../js_backend/namer.dart' show Namer, StringBackedName; |
49 import '../../js_backend/native_data.dart'; | 43 import '../../js_backend/native_data.dart'; |
50 import '../../js_backend/interceptor_data.dart'; | 44 import '../../js_backend/interceptor_data.dart'; |
51 import '../../js_backend/mirrors_data.dart'; | 45 import '../../js_backend/mirrors_data.dart'; |
52 import '../../js_backend/js_interop_analysis.dart'; | 46 import '../../js_backend/js_interop_analysis.dart'; |
| 47 import '../../js_backend/runtime_types.dart' |
| 48 show |
| 49 RuntimeTypesChecks, |
| 50 RuntimeTypesNeed, |
| 51 RuntimeTypesEncoder, |
| 52 RuntimeTypesSubstitutions; |
53 import '../../native/enqueue.dart' show NativeCodegenEnqueuer; | 53 import '../../native/enqueue.dart' show NativeCodegenEnqueuer; |
54 import '../../options.dart'; | 54 import '../../options.dart'; |
55 import '../../universe/selector.dart' show Selector; | 55 import '../../universe/selector.dart' show Selector; |
56 import '../../universe/world_builder.dart' | 56 import '../../universe/world_builder.dart' |
57 show CodegenWorldBuilder, SelectorConstraints; | 57 show CodegenWorldBuilder, SelectorConstraints; |
58 import '../../world.dart' show ClosedWorld; | 58 import '../../world.dart' show ClosedWorld; |
59 import '../js_emitter.dart' | 59 import '../js_emitter.dart' |
60 show | 60 show |
61 ClassStubGenerator, | 61 ClassStubGenerator, |
62 CodeEmitterTask, | 62 CodeEmitterTask, |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 Constant constant = new Constant(name, holder, constantValue); | 1174 Constant constant = new Constant(name, holder, constantValue); |
1175 _constants[constantValue] = constant; | 1175 _constants[constantValue] = constant; |
1176 } | 1176 } |
1177 } | 1177 } |
1178 | 1178 |
1179 Holder _registerStaticStateHolder() { | 1179 Holder _registerStaticStateHolder() { |
1180 return _registry.registerHolder(_namer.staticStateHolder, | 1180 return _registry.registerHolder(_namer.staticStateHolder, |
1181 isStaticStateHolder: true); | 1181 isStaticStateHolder: true); |
1182 } | 1182 } |
1183 } | 1183 } |
OLD | NEW |