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