| 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.full_emitter; | 5 library dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 import 'dart:collection' show HashMap; | 7 import 'dart:collection' show HashMap; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 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' | 11 import 'package:js_runtime/shared/embedded_names.dart' |
| 12 show JsBuiltin, JsGetName; | 12 show JsBuiltin, JsGetName; |
| 13 | 13 |
| 14 import '../../../compiler_new.dart'; | 14 import '../../../compiler_new.dart'; |
| 15 import '../../common.dart'; | 15 import '../../common.dart'; |
| 16 import '../../compiler.dart' show Compiler; | 16 import '../../compiler.dart' show Compiler; |
| 17 import '../../constants/values.dart'; | 17 import '../../constants/values.dart'; |
| 18 import '../../common_elements.dart' show CommonElements, ElementEnvironment; | 18 import '../../common_elements.dart' show CommonElements, ElementEnvironment; |
| 19 import '../../elements/resolution_types.dart' show ResolutionDartType; | 19 import '../../elements/resolution_types.dart' show ResolutionDartType; |
| 20 import '../../deferred_load.dart' show OutputUnit; | 20 import '../../deferred_load.dart' show OutputUnit; |
| 21 import '../../elements/elements.dart' | 21 import '../../elements/elements.dart' |
| 22 show | 22 show |
| 23 ClassElement, | 23 ClassElement, |
| 24 ConstructorBodyElement, | 24 ConstructorBodyElement, |
| 25 Element, | |
| 26 FieldElement, | 25 FieldElement, |
| 27 FunctionSignature, | |
| 28 LibraryElement, | 26 LibraryElement, |
| 29 MethodElement, | 27 MethodElement, |
| 30 TypedefElement; | 28 TypedefElement; |
| 31 import '../../elements/entities.dart'; | 29 import '../../elements/entities.dart'; |
| 32 import '../../elements/entity_utils.dart' as utils; | 30 import '../../elements/entity_utils.dart' as utils; |
| 33 import '../../elements/names.dart'; | 31 import '../../elements/names.dart'; |
| 34 import '../../hash/sha1.dart' show Hasher; | 32 import '../../hash/sha1.dart' show Hasher; |
| 35 import '../../io/code_output.dart'; | 33 import '../../io/code_output.dart'; |
| 36 import '../../io/location_provider.dart' show LocationCollector; | 34 import '../../io/location_provider.dart' show LocationCollector; |
| 37 import '../../io/source_map_builder.dart' show SourceMapBuilder; | 35 import '../../io/source_map_builder.dart' show SourceMapBuilder; |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1974 // data. | 1972 // data. |
| 1975 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 1973 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
| 1976 "needed for a given deferred library import."; | 1974 "needed for a given deferred library import."; |
| 1977 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 1975 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
| 1978 compiler.outputProvider( | 1976 compiler.outputProvider( |
| 1979 compiler.options.deferredMapUri.path, '', OutputType.info) | 1977 compiler.options.deferredMapUri.path, '', OutputType.info) |
| 1980 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 1978 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 1981 ..close(); | 1979 ..close(); |
| 1982 } | 1980 } |
| 1983 } | 1981 } |
| OLD | NEW |