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 code_generator_dependencies; | 5 library code_generator_dependencies; |
6 | 6 |
7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
8 import '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
(...skipping 17 matching lines...) Expand all Loading... |
28 CodeEmitterTask get _emitter => _backend.emitter; | 28 CodeEmitterTask get _emitter => _backend.emitter; |
29 | 29 |
30 Namer get _namer => _backend.namer; | 30 Namer get _namer => _backend.namer; |
31 | 31 |
32 Glue(this._compiler); | 32 Glue(this._compiler); |
33 | 33 |
34 js.Expression constantReference(ConstantValue value) { | 34 js.Expression constantReference(ConstantValue value) { |
35 return _emitter.constantReference(value); | 35 return _emitter.constantReference(value); |
36 } | 36 } |
37 | 37 |
38 Element getStringConversion() { | |
39 return _backend.getStringInterpolationHelper(); | |
40 } | |
41 | |
42 reportInternalError(String message) { | 38 reportInternalError(String message) { |
43 _compiler.internalError(_compiler.currentElement, message); | 39 _compiler.internalError(_compiler.currentElement, message); |
44 } | 40 } |
45 | 41 |
46 ConstantValue getConstantValueForVariable(VariableElement variable) { | 42 ConstantValue getConstantValueForVariable(VariableElement variable) { |
47 return _backend.constants.getConstantValueForVariable(variable); | 43 return _backend.constants.getConstantValueForVariable(variable); |
48 } | 44 } |
49 | 45 |
50 js.Expression staticFunctionAccess(FunctionElement element) { | 46 js.Expression staticFunctionAccess(FunctionElement element) { |
51 return _backend.emitter.staticFunctionAccess(element); | 47 return _backend.emitter.staticFunctionAccess(element); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 228 } |
233 | 229 |
234 bool operatorEqHandlesNullArgument(FunctionElement element) { | 230 bool operatorEqHandlesNullArgument(FunctionElement element) { |
235 return _backend.operatorEqHandlesNullArgument(element); | 231 return _backend.operatorEqHandlesNullArgument(element); |
236 } | 232 } |
237 | 233 |
238 bool hasStrictSubtype(ClassElement element) { | 234 bool hasStrictSubtype(ClassElement element) { |
239 return _compiler.world.hasAnyStrictSubtype(element); | 235 return _compiler.world.hasAnyStrictSubtype(element); |
240 } | 236 } |
241 } | 237 } |
OLD | NEW |