| 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' | 7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; |
| 8 show JsBuiltin, METADATA, TYPES; | |
| 9 | 8 |
| 10 import '../../common.dart'; | 9 import '../../common.dart'; |
| 11 import '../../compiler.dart' show Compiler; | 10 import '../../compiler.dart' show Compiler; |
| 12 import '../../constants/values.dart' show ConstantValue; | 11 import '../../constants/values.dart' show ConstantValue; |
| 13 import '../../elements/elements.dart' | 12 import '../../elements/elements.dart' |
| 14 show ClassElement, Element, FieldElement, FunctionElement; | 13 show ClassElement, Element, FieldElement, FunctionElement; |
| 15 import '../../js/js.dart' as js; | 14 import '../../js/js.dart' as js; |
| 16 import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer; | 15 import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer; |
| 17 | |
| 18 import '../js_emitter.dart' show NativeEmitter; | 16 import '../js_emitter.dart' show NativeEmitter; |
| 19 import '../js_emitter.dart' as emitterTask show Emitter; | 17 import '../js_emitter.dart' as emitterTask show Emitter; |
| 20 import '../model.dart'; | 18 import '../model.dart'; |
| 21 import '../program_builder/program_builder.dart' show ProgramBuilder; | 19 import '../program_builder/program_builder.dart' show ProgramBuilder; |
| 22 | |
| 23 import 'model_emitter.dart'; | 20 import 'model_emitter.dart'; |
| 24 | 21 |
| 25 class Emitter implements emitterTask.Emitter { | 22 class Emitter implements emitterTask.Emitter { |
| 26 final Compiler _compiler; | 23 final Compiler _compiler; |
| 27 final Namer namer; | 24 final Namer namer; |
| 28 final ModelEmitter _emitter; | 25 final ModelEmitter _emitter; |
| 29 | 26 |
| 30 JavaScriptBackend get _backend => _compiler.backend; | 27 JavaScriptBackend get _backend => _compiler.backend; |
| 31 | 28 |
| 32 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) | 29 Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter) |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 default: | 174 default: |
| 178 reporter.internalError( | 175 reporter.internalError( |
| 179 NO_LOCATION_SPANNABLE, "Unhandled Builtin: $builtin"); | 176 NO_LOCATION_SPANNABLE, "Unhandled Builtin: $builtin"); |
| 180 return null; | 177 return null; |
| 181 } | 178 } |
| 182 } | 179 } |
| 183 | 180 |
| 184 @override | 181 @override |
| 185 void invalidateCaches() {} | 182 void invalidateCaches() {} |
| 186 } | 183 } |
| OLD | NEW |