| 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.lazy_emitter.model_emitter; | 5 library dart2js.js_emitter.lazy_emitter.model_emitter; |
| 6 | 6 |
| 7 import '../../compiler.dart' show Compiler; | |
| 8 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; | |
| 9 import '../../core_types.dart' show CoreClasses; | |
| 10 import '../../elements/elements.dart' show ClassElement, FunctionElement; | |
| 11 import '../../js/js.dart' as js; | |
| 12 import '../../js_backend/js_backend.dart' | |
| 13 show JavaScriptBackend, Namer, ConstantEmitter; | |
| 14 | |
| 15 import '../js_emitter.dart' show NativeEmitter; | |
| 16 import '../constant_ordering.dart' show deepCompareConstants; | |
| 17 | |
| 18 import 'package:js_runtime/shared/embedded_names.dart' | 7 import 'package:js_runtime/shared/embedded_names.dart' |
| 19 show | 8 show |
| 20 CREATE_NEW_ISOLATE, | 9 CREATE_NEW_ISOLATE, |
| 21 DEFERRED_LIBRARY_URIS, | 10 DEFERRED_LIBRARY_URIS, |
| 22 DEFERRED_LIBRARY_HASHES, | 11 DEFERRED_LIBRARY_HASHES, |
| 23 GET_TYPE_FROM_NAME, | 12 GET_TYPE_FROM_NAME, |
| 24 INITIALIZE_LOADED_HUNK, | 13 INITIALIZE_LOADED_HUNK, |
| 25 INTERCEPTORS_BY_TAG, | 14 INTERCEPTORS_BY_TAG, |
| 26 IS_HUNK_INITIALIZED, | 15 IS_HUNK_INITIALIZED, |
| 27 IS_HUNK_LOADED, | 16 IS_HUNK_LOADED, |
| 28 LEAF_TAGS, | 17 LEAF_TAGS, |
| 29 MANGLED_GLOBAL_NAMES, | 18 MANGLED_GLOBAL_NAMES, |
| 30 METADATA, | 19 METADATA, |
| 31 TYPE_TO_INTERCEPTOR_MAP, | 20 TYPE_TO_INTERCEPTOR_MAP, |
| 32 TYPES; | 21 TYPES; |
| 33 | 22 |
| 23 import '../../compiler.dart' show Compiler; |
| 24 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; |
| 25 import '../../core_types.dart' show CoreClasses; |
| 26 import '../../elements/elements.dart' show ClassElement, FunctionElement; |
| 27 import '../../js/js.dart' as js; |
| 28 import '../../js_backend/js_backend.dart' |
| 29 show JavaScriptBackend, Namer, ConstantEmitter; |
| 30 import '../constant_ordering.dart' show deepCompareConstants; |
| 31 import '../js_emitter.dart' show NativeEmitter; |
| 34 import '../js_emitter.dart' show NativeGenerator, buildTearOffCode; | 32 import '../js_emitter.dart' show NativeGenerator, buildTearOffCode; |
| 35 import '../model.dart'; | 33 import '../model.dart'; |
| 36 | 34 |
| 37 class ModelEmitter { | 35 class ModelEmitter { |
| 38 final Compiler compiler; | 36 final Compiler compiler; |
| 39 final Namer namer; | 37 final Namer namer; |
| 40 ConstantEmitter constantEmitter; | 38 ConstantEmitter constantEmitter; |
| 41 final NativeEmitter nativeEmitter; | 39 final NativeEmitter nativeEmitter; |
| 42 | 40 |
| 43 JavaScriptBackend get backend => compiler.backend; | 41 JavaScriptBackend get backend => compiler.backend; |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 #eagerClasses; | 1262 #eagerClasses; |
| 1265 | 1263 |
| 1266 var end = Date.now(); | 1264 var end = Date.now(); |
| 1267 // print('Setup: ' + (end - start) + ' ms.'); | 1265 // print('Setup: ' + (end - start) + ' ms.'); |
| 1268 | 1266 |
| 1269 #invokeMain; // Start main. | 1267 #invokeMain; // Start main. |
| 1270 | 1268 |
| 1271 })(Date.now(), #code) | 1269 })(Date.now(), #code) |
| 1272 }"""; | 1270 }"""; |
| 1273 } | 1271 } |
| OLD | NEW |