| 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.new_js_emitter.model_emitter; | 5 library dart2js.new_js_emitter.model_emitter; |
| 6 | 6 |
| 7 import '../../dart2jslib.dart' show Compiler; | 7 import '../../dart2jslib.dart' show Compiler; |
| 8 import '../../js/js.dart' as js; | 8 import '../../js/js.dart' as js; |
| 9 import '../../js_backend/js_backend.dart' show | 9 import '../../js_backend/js_backend.dart' show |
| 10 JavaScriptBackend, | 10 JavaScriptBackend, |
| 11 Namer, | 11 Namer, |
| 12 ConstantEmitter; | 12 ConstantEmitter; |
| 13 | 13 |
| 14 import '../../../js_lib/shared/embedded_names.dart' show | 14 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' show |
| 15 DEFERRED_LIBRARY_URIS, | 15 DEFERRED_LIBRARY_URIS, |
| 16 DEFERRED_LIBRARY_HASHES, | 16 DEFERRED_LIBRARY_HASHES, |
| 17 INITIALIZE_LOADED_HUNK, | 17 INITIALIZE_LOADED_HUNK, |
| 18 IS_HUNK_LOADED; | 18 IS_HUNK_LOADED; |
| 19 | 19 |
| 20 import '../model.dart'; | 20 import '../model.dart'; |
| 21 | 21 |
| 22 class ModelEmitter { | 22 class ModelEmitter { |
| 23 final Compiler compiler; | 23 final Compiler compiler; |
| 24 final Namer namer; | 24 final Namer namer; |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 // Initialize eager classes. | 489 // Initialize eager classes. |
| 490 #; | 490 #; |
| 491 | 491 |
| 492 var end = Date.now(); | 492 var end = Date.now(); |
| 493 print('Setup: ' + (end - start) + ' ms.'); | 493 print('Setup: ' + (end - start) + ' ms.'); |
| 494 | 494 |
| 495 if (true) #(); // Start main. | 495 if (true) #(); // Start main. |
| 496 | 496 |
| 497 }(Date.now(), #) | 497 }(Date.now(), #) |
| 498 }"""; | 498 }"""; |
| OLD | NEW |