| 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 ClosureConversionTask, ClosureFieldElement; | 10 import '../../closure.dart' show ClosureConversionTask, ClosureFieldElement; |
| 11 import '../../common.dart'; | 11 import '../../common.dart'; |
| 12 import '../../common/names.dart' show Names, Selectors; | 12 import '../../common/names.dart' show Names, Selectors; |
| 13 import '../../constants/values.dart' | 13 import '../../constants/values.dart' |
| 14 show ConstantValue, InterceptorConstantValue; | 14 show ConstantValue, InterceptorConstantValue; |
| 15 import '../../common_elements.dart' show CommonElements, ElementEnvironment; | 15 import '../../common_elements.dart' show CommonElements, ElementEnvironment; |
| 16 import '../../deferred_load.dart' show DeferredLoadTask, OutputUnit; | 16 import '../../deferred_load.dart' show DeferredLoadTask, OutputUnit; |
| 17 import '../../elements/elements.dart' | 17 import '../../elements/elements.dart' |
| 18 show | 18 show |
| 19 ClassElement, | 19 ClassElement, |
| 20 Elements, | |
| 21 FieldElement, | 20 FieldElement, |
| 22 FunctionSignature, | 21 FunctionSignature, |
| 23 GetterElement, | 22 GetterElement, |
| 24 LibraryElement, | 23 LibraryElement, |
| 25 MemberElement, | 24 MemberElement, |
| 26 MethodElement, | 25 MethodElement, |
| 27 ParameterElement, | 26 ParameterElement; |
| 28 TypedefElement; | |
| 29 import '../../elements/entities.dart'; | 27 import '../../elements/entities.dart'; |
| 30 import '../../elements/resolution_types.dart' | 28 import '../../elements/resolution_types.dart' |
| 31 show ResolutionDartType, ResolutionFunctionType, ResolutionTypedefType; | 29 show ResolutionDartType, ResolutionFunctionType, ResolutionTypedefType; |
| 32 import '../../elements/types.dart' show DartType, DartTypes; | 30 import '../../elements/types.dart' show DartType, DartTypes; |
| 33 import '../../js/js.dart' as js; | 31 import '../../js/js.dart' as js; |
| 34 import '../../js_backend/backend.dart' show SuperMemberData; | 32 import '../../js_backend/backend.dart' show SuperMemberData; |
| 35 import '../../js_backend/backend_usage.dart'; | 33 import '../../js_backend/backend_usage.dart'; |
| 36 import '../../js_backend/constant_handler_javascript.dart' | 34 import '../../js_backend/constant_handler_javascript.dart' |
| 37 show JavaScriptConstantCompiler; | 35 show JavaScriptConstantCompiler; |
| 38 import '../../js_backend/custom_elements_analysis.dart'; | 36 import '../../js_backend/custom_elements_analysis.dart'; |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 Constant constant = new Constant(name, holder, constantValue); | 1191 Constant constant = new Constant(name, holder, constantValue); |
| 1194 _constants[constantValue] = constant; | 1192 _constants[constantValue] = constant; |
| 1195 } | 1193 } |
| 1196 } | 1194 } |
| 1197 | 1195 |
| 1198 Holder _registerStaticStateHolder() { | 1196 Holder _registerStaticStateHolder() { |
| 1199 return _registry.registerHolder(_namer.staticStateHolder, | 1197 return _registry.registerHolder(_namer.staticStateHolder, |
| 1200 isStaticStateHolder: true); | 1198 isStaticStateHolder: true); |
| 1201 } | 1199 } |
| 1202 } | 1200 } |
| OLD | NEW |