| 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 'dart:async'; | |
| 8 import 'dart:convert'; | 7 import 'dart:convert'; |
| 9 | 8 |
| 10 import '../common.dart'; | 9 import '../common.dart'; |
| 11 | 10 |
| 12 import '../constants/expressions.dart'; | 11 import '../constants/expressions.dart'; |
| 13 import '../constants/values.dart'; | 12 import '../constants/values.dart'; |
| 14 | 13 |
| 15 import '../closure.dart' show | 14 import '../closure.dart' show |
| 16 ClosureClassElement, | 15 ClosureClassElement, |
| 17 ClosureClassMap, | 16 ClosureClassMap, |
| 18 ClosureFieldElement, | 17 ClosureFieldElement, |
| 19 CapturedVariable; | 18 CapturedVariable; |
| 20 | 19 |
| 21 import '../dart_types.dart' show | 20 import '../dart_types.dart' show |
| 22 TypedefType; | 21 TypedefType; |
| 23 | 22 |
| 24 import '../io/code_output.dart'; | 23 import '../io/code_output.dart'; |
| 25 | 24 |
| 26 import '../elements/elements.dart' show | 25 import '../elements/elements.dart' show |
| 27 ConstructorBodyElement, | 26 ConstructorBodyElement, |
| 28 ElementKind, | 27 ElementKind, |
| 29 FieldElement, | 28 FieldElement, |
| 30 ParameterElement, | 29 ParameterElement, |
| 31 TypeVariableElement; | 30 TypeVariableElement; |
| 32 | 31 |
| 33 import '../hash/sha1.dart' show hashOfString; | 32 import '../hash/sha1.dart' show Hasher; |
| 34 | 33 |
| 35 import '../helpers/helpers.dart'; // Included for debug helpers. | 34 import '../helpers/helpers.dart'; // Included for debug helpers. |
| 36 | 35 |
| 37 import '../js/js.dart' as jsAst; | 36 import '../js/js.dart' as jsAst; |
| 38 import '../js/js.dart' show | 37 import '../js/js.dart' show |
| 39 js; | 38 js; |
| 40 | 39 |
| 41 import '../js_backend/js_backend.dart' show | 40 import '../js_backend/js_backend.dart' show |
| 42 CheckedModeHelper, | 41 CheckedModeHelper, |
| 43 ConstantEmitter, | 42 ConstantEmitter, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 81 |
| 83 import '../util/util.dart' show | 82 import '../util/util.dart' show |
| 84 equalElements; | 83 equalElements; |
| 85 | 84 |
| 86 import '../deferred_load.dart' show | 85 import '../deferred_load.dart' show |
| 87 OutputUnit; | 86 OutputUnit; |
| 88 | 87 |
| 89 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' | 88 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' |
| 90 as embeddedNames; | 89 as embeddedNames; |
| 91 | 90 |
| 92 import '../hash/sha1.dart'; | |
| 93 | |
| 94 part 'class_stub_generator.dart'; | 91 part 'class_stub_generator.dart'; |
| 95 part 'code_emitter_task.dart'; | 92 part 'code_emitter_task.dart'; |
| 96 part 'helpers.dart'; | 93 part 'helpers.dart'; |
| 97 part 'interceptor_stub_generator.dart'; | 94 part 'interceptor_stub_generator.dart'; |
| 98 part 'native_generator.dart'; | 95 part 'native_generator.dart'; |
| 99 part 'type_test_generator.dart'; | 96 part 'type_test_generator.dart'; |
| 100 part 'type_test_registry.dart'; | 97 part 'type_test_registry.dart'; |
| 101 | 98 |
| 102 part 'old_emitter/class_builder.dart'; | 99 part 'old_emitter/class_builder.dart'; |
| 103 part 'old_emitter/class_emitter.dart'; | 100 part 'old_emitter/class_emitter.dart'; |
| 104 part 'old_emitter/code_emitter_helper.dart'; | 101 part 'old_emitter/code_emitter_helper.dart'; |
| 105 part 'old_emitter/container_builder.dart'; | 102 part 'old_emitter/container_builder.dart'; |
| 106 part 'old_emitter/declarations.dart'; | 103 part 'old_emitter/declarations.dart'; |
| 107 part 'old_emitter/emitter.dart'; | 104 part 'old_emitter/emitter.dart'; |
| 108 part 'old_emitter/interceptor_emitter.dart'; | 105 part 'old_emitter/interceptor_emitter.dart'; |
| 109 part 'old_emitter/metadata_emitter.dart'; | 106 part 'old_emitter/metadata_emitter.dart'; |
| 110 part 'old_emitter/nsm_emitter.dart'; | 107 part 'old_emitter/nsm_emitter.dart'; |
| 111 part 'old_emitter/reflection_data_parser.dart'; | 108 part 'old_emitter/reflection_data_parser.dart'; |
| 112 part 'old_emitter/type_test_emitter.dart'; | 109 part 'old_emitter/type_test_emitter.dart'; |
| OLD | NEW |