OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.startup_emitter.model_emitter; | 5 library dart2js.js_emitter.startup_emitter.model_emitter; |
6 | 6 |
7 import 'dart:convert' show JsonEncoder; | 7 import 'dart:convert' show JsonEncoder; |
8 | 8 |
9 import 'package:js_runtime/shared/embedded_names.dart' show | 9 import 'package:js_runtime/shared/embedded_names.dart' show |
10 CLASS_FIELDS_EXTRACTOR, | 10 CLASS_FIELDS_EXTRACTOR, |
(...skipping 17 matching lines...) Expand all Loading... |
28 STATIC_FUNCTION_NAME_TO_CLOSURE, | 28 STATIC_FUNCTION_NAME_TO_CLOSURE, |
29 TYPE_TO_INTERCEPTOR_MAP, | 29 TYPE_TO_INTERCEPTOR_MAP, |
30 TYPES; | 30 TYPES; |
31 | 31 |
32 import '../../common.dart'; | 32 import '../../common.dart'; |
33 import '../../constants/values.dart' show | 33 import '../../constants/values.dart' show |
34 ConstantValue, | 34 ConstantValue, |
35 FunctionConstantValue; | 35 FunctionConstantValue; |
36 import '../../compiler.dart' show | 36 import '../../compiler.dart' show |
37 Compiler; | 37 Compiler; |
| 38 import '../../core_types.dart' show |
| 39 CoreClasses; |
38 import '../../elements/elements.dart' show | 40 import '../../elements/elements.dart' show |
39 ClassElement, | 41 ClassElement, |
40 FunctionElement; | 42 FunctionElement; |
41 import '../../hash/sha1.dart' show | 43 import '../../hash/sha1.dart' show |
42 Hasher; | 44 Hasher; |
43 import '../../io/code_output.dart'; | 45 import '../../io/code_output.dart'; |
44 import '../../io/line_column_provider.dart' show | 46 import '../../io/line_column_provider.dart' show |
45 LineColumnCollector, | 47 LineColumnCollector, |
46 LineColumnProvider; | 48 LineColumnProvider; |
47 import '../../io/source_map_builder.dart' show | 49 import '../../io/source_map_builder.dart' show |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 // Json does not support comments, so we embed the explanation in the | 403 // Json does not support comments, so we embed the explanation in the |
402 // data. | 404 // data. |
403 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 405 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
404 "needed for a given deferred library import."; | 406 "needed for a given deferred library import."; |
405 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 407 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
406 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') | 408 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') |
407 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 409 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
408 ..close(); | 410 ..close(); |
409 } | 411 } |
410 } | 412 } |
OLD | NEW |