| 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 '../../common.dart'; | 9 import '../../common.dart'; |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 DEFERRED_INITIALIZED, | 41 DEFERRED_INITIALIZED, |
| 42 DEFERRED_LIBRARY_URIS, | 42 DEFERRED_LIBRARY_URIS, |
| 43 DEFERRED_LIBRARY_HASHES, | 43 DEFERRED_LIBRARY_HASHES, |
| 44 GET_TYPE_FROM_NAME, | 44 GET_TYPE_FROM_NAME, |
| 45 INITIALIZE_LOADED_HUNK, | 45 INITIALIZE_LOADED_HUNK, |
| 46 INTERCEPTORS_BY_TAG, | 46 INTERCEPTORS_BY_TAG, |
| 47 IS_HUNK_INITIALIZED, | 47 IS_HUNK_INITIALIZED, |
| 48 IS_HUNK_LOADED, | 48 IS_HUNK_LOADED, |
| 49 LEAF_TAGS, | 49 LEAF_TAGS, |
| 50 MANGLED_GLOBAL_NAMES, | 50 MANGLED_GLOBAL_NAMES, |
| 51 MANGLED_NAMES, |
| 51 METADATA, | 52 METADATA, |
| 52 NATIVE_SUPERCLASS_TAG_NAME, | 53 NATIVE_SUPERCLASS_TAG_NAME, |
| 53 TYPE_TO_INTERCEPTOR_MAP, | 54 TYPE_TO_INTERCEPTOR_MAP, |
| 54 TYPES; | 55 TYPES; |
| 55 | 56 |
| 56 import '../js_emitter.dart' show NativeGenerator, buildTearOffCode; | 57 import '../js_emitter.dart' show NativeGenerator, buildTearOffCode; |
| 57 import '../model.dart'; | 58 import '../model.dart'; |
| 58 | 59 |
| 59 part 'deferred_fragment_hash.dart'; | 60 part 'deferred_fragment_hash.dart'; |
| 60 part 'fragment_emitter.dart'; | 61 part 'fragment_emitter.dart'; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // Json does not support comments, so we embed the explanation in the | 384 // Json does not support comments, so we embed the explanation in the |
| 384 // data. | 385 // data. |
| 385 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 386 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
| 386 "needed for a given deferred library import."; | 387 "needed for a given deferred library import."; |
| 387 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 388 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
| 388 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') | 389 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') |
| 389 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 390 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 390 ..close(); | 391 ..close(); |
| 391 } | 392 } |
| 392 } | 393 } |
| OLD | NEW |