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; | 5 library dart2js.js_emitter.lazy_emitter; |
6 | 6 |
7 import 'package:js_runtime/shared/embedded_names.dart' show | 7 import 'package:js_runtime/shared/embedded_names.dart' show |
8 JsBuiltin, | 8 JsBuiltin, |
9 METADATA, | 9 METADATA, |
10 TYPES; | 10 TYPES; |
11 | 11 |
12 import '../program_builder/program_builder.dart' show ProgramBuilder; | 12 import '../program_builder/program_builder.dart' show ProgramBuilder; |
13 import '../model.dart'; | 13 import '../model.dart'; |
14 import 'model_emitter.dart'; | 14 import 'model_emitter.dart'; |
15 import '../../common.dart'; | 15 import '../../common.dart'; |
16 import '../../elements/elements.dart' show FieldElement; | 16 import '../../elements/elements.dart' show FieldElement; |
17 import '../../js/js.dart' as js; | 17 import '../../js/js.dart' as js; |
18 | 18 |
19 import '../../js_backend/js_backend.dart' show | 19 import '../../js_backend/js_backend.dart' show |
20 JavaScriptBackend, | 20 JavaScriptBackend, |
21 Namer; | 21 Namer; |
22 | 22 |
23 import '../js_emitter.dart' show | 23 import '../js_emitter.dart' show |
24 NativeEmitter; | 24 NativeEmitter; |
25 | 25 |
26 import '../js_emitter.dart' as emitterTask show | 26 import '../js_emitter.dart' as emitterTask show |
27 Emitter; | 27 Emitter; |
28 | 28 |
29 import '../../util/util.dart' show | 29 import '../../diagnostics/spannable.dart' show |
30 NO_LOCATION_SPANNABLE; | 30 NO_LOCATION_SPANNABLE; |
31 | 31 |
32 class Emitter implements emitterTask.Emitter { | 32 class Emitter implements emitterTask.Emitter { |
33 final Compiler _compiler; | 33 final Compiler _compiler; |
34 final Namer namer; | 34 final Namer namer; |
35 final ModelEmitter _emitter; | 35 final ModelEmitter _emitter; |
36 | 36 |
37 JavaScriptBackend get _backend => _compiler.backend; | 37 JavaScriptBackend get _backend => _compiler.backend; |
38 | 38 |
39 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) | 39 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 _compiler.internalError(NO_LOCATION_SPANNABLE, | 184 _compiler.internalError(NO_LOCATION_SPANNABLE, |
185 "Unhandled Builtin: $builtin"); | 185 "Unhandled Builtin: $builtin"); |
186 return null; | 186 return null; |
187 } | 187 } |
188 } | 188 } |
189 | 189 |
190 @override | 190 @override |
191 void invalidateCaches() { | 191 void invalidateCaches() { |
192 } | 192 } |
193 } | 193 } |
OLD | NEW |