| 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; | |
| 13 import '../model.dart'; | |
| 14 import 'model_emitter.dart'; | |
| 15 import '../../common.dart'; | 12 import '../../common.dart'; |
| 16 import '../../elements/elements.dart' show FieldElement; | 13 import '../../compiler.dart' show |
| 14 Compiler; |
| 15 import '../../constants/values.dart' show |
| 16 ConstantValue; |
| 17 import '../../elements/elements.dart' show |
| 18 ClassElement, |
| 19 Element, |
| 20 FieldElement, |
| 21 FunctionElement; |
| 17 import '../../js/js.dart' as js; | 22 import '../../js/js.dart' as js; |
| 18 | |
| 19 import '../../js_backend/js_backend.dart' show | 23 import '../../js_backend/js_backend.dart' show |
| 20 JavaScriptBackend, | 24 JavaScriptBackend, |
| 21 Namer; | 25 Namer; |
| 22 | 26 |
| 23 import '../js_emitter.dart' show | 27 import '../js_emitter.dart' show |
| 24 NativeEmitter; | 28 NativeEmitter; |
| 25 | |
| 26 import '../js_emitter.dart' as emitterTask show | 29 import '../js_emitter.dart' as emitterTask show |
| 27 Emitter; | 30 Emitter; |
| 31 import '../model.dart'; |
| 32 import '../program_builder/program_builder.dart' show |
| 33 ProgramBuilder; |
| 28 | 34 |
| 29 import '../../diagnostics/diagnostic_listener.dart' show | 35 import 'model_emitter.dart'; |
| 30 DiagnosticReporter; | |
| 31 | |
| 32 import '../../diagnostics/spannable.dart' show | |
| 33 NO_LOCATION_SPANNABLE; | |
| 34 | 36 |
| 35 class Emitter implements emitterTask.Emitter { | 37 class Emitter implements emitterTask.Emitter { |
| 36 final Compiler _compiler; | 38 final Compiler _compiler; |
| 37 final Namer namer; | 39 final Namer namer; |
| 38 final ModelEmitter _emitter; | 40 final ModelEmitter _emitter; |
| 39 | 41 |
| 40 JavaScriptBackend get _backend => _compiler.backend; | 42 JavaScriptBackend get _backend => _compiler.backend; |
| 41 | 43 |
| 42 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) | 44 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) |
| 43 : this._compiler = compiler, | 45 : this._compiler = compiler, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 reporter.internalError(NO_LOCATION_SPANNABLE, | 190 reporter.internalError(NO_LOCATION_SPANNABLE, |
| 189 "Unhandled Builtin: $builtin"); | 191 "Unhandled Builtin: $builtin"); |
| 190 return null; | 192 return null; |
| 191 } | 193 } |
| 192 } | 194 } |
| 193 | 195 |
| 194 @override | 196 @override |
| 195 void invalidateCaches() { | 197 void invalidateCaches() { |
| 196 } | 198 } |
| 197 } | 199 } |
| OLD | NEW |