| 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; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 FieldElement, | 26 FieldElement, |
| 27 FunctionElement, | 27 FunctionElement, |
| 28 FunctionSignature, | 28 FunctionSignature, |
| 29 LibraryElement, | 29 LibraryElement, |
| 30 MethodElement, | 30 MethodElement, |
| 31 TypedefElement, | 31 TypedefElement, |
| 32 VariableElement; | 32 VariableElement; |
| 33 import '../../elements/entities.dart'; | 33 import '../../elements/entities.dart'; |
| 34 import '../../hash/sha1.dart' show Hasher; | 34 import '../../hash/sha1.dart' show Hasher; |
| 35 import '../../io/code_output.dart'; | 35 import '../../io/code_output.dart'; |
| 36 import '../../io/line_column_provider.dart' | 36 import '../../io/line_column_provider.dart' show LineColumnCollector; |
| 37 show LineColumnCollector, LineColumnProvider; | |
| 38 import '../../io/source_map_builder.dart' show SourceMapBuilder; | 37 import '../../io/source_map_builder.dart' show SourceMapBuilder; |
| 39 import '../../js/js.dart' as jsAst; | 38 import '../../js/js.dart' as jsAst; |
| 40 import '../../js/js.dart' show js; | 39 import '../../js/js.dart' show js; |
| 41 import '../../js_backend/backend_helpers.dart' show BackendHelpers; | 40 import '../../js_backend/backend_helpers.dart' show BackendHelpers; |
| 42 import '../../js_backend/js_backend.dart' | 41 import '../../js_backend/js_backend.dart' |
| 43 show | 42 show |
| 44 ConstantEmitter, | 43 ConstantEmitter, |
| 45 JavaScriptBackend, | 44 JavaScriptBackend, |
| 46 JavaScriptConstantCompiler, | 45 JavaScriptConstantCompiler, |
| 47 Namer, | 46 Namer, |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1929 // data. | 1928 // data. |
| 1930 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 1929 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
| 1931 "needed for a given deferred library import."; | 1930 "needed for a given deferred library import."; |
| 1932 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 1931 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
| 1933 compiler.outputProvider( | 1932 compiler.outputProvider( |
| 1934 compiler.options.deferredMapUri.path, '', OutputType.info) | 1933 compiler.options.deferredMapUri.path, '', OutputType.info) |
| 1935 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 1934 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 1936 ..close(); | 1935 ..close(); |
| 1937 } | 1936 } |
| 1938 } | 1937 } |
| OLD | NEW |