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 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 Element getStringConversion() { | 39 Element getStringConversion() { |
40 return _backend.getStringInterpolationHelper(); | 40 return _backend.getStringInterpolationHelper(); |
41 } | 41 } |
42 | 42 |
43 reportInternalError(String message) { | 43 reportInternalError(String message) { |
44 _compiler.internalError(_compiler.currentElement, message); | 44 _compiler.internalError(_compiler.currentElement, message); |
45 } | 45 } |
46 | 46 |
47 ConstantExpression getConstantForVariable(VariableElement variable) { | 47 ConstantValue getConstantValueForVariable(VariableElement variable) { |
48 return _backend.constants.getConstantForVariable(variable); | 48 return _backend.constants.getConstantValueForVariable(variable); |
49 } | 49 } |
50 | 50 |
51 js.Expression staticFunctionAccess(FunctionElement element) { | 51 js.Expression staticFunctionAccess(FunctionElement element) { |
52 return _backend.emitter.staticFunctionAccess(element); | 52 return _backend.emitter.staticFunctionAccess(element); |
53 } | 53 } |
54 | 54 |
55 js.Expression isolateStaticClosureAccess(FunctionElement element) { | 55 js.Expression isolateStaticClosureAccess(FunctionElement element) { |
56 return _backend.emitter.isolateStaticClosureAccess(element); | 56 return _backend.emitter.isolateStaticClosureAccess(element); |
57 } | 57 } |
58 | 58 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 223 } |
224 | 224 |
225 bool operatorEqHandlesNullArgument(FunctionElement element) { | 225 bool operatorEqHandlesNullArgument(FunctionElement element) { |
226 return _backend.operatorEqHandlesNullArgument(element); | 226 return _backend.operatorEqHandlesNullArgument(element); |
227 } | 227 } |
228 | 228 |
229 bool hasStrictSubtype(ClassElement element) { | 229 bool hasStrictSubtype(ClassElement element) { |
230 return _compiler.world.hasAnyStrictSubtype(element); | 230 return _compiler.world.hasAnyStrictSubtype(element); |
231 } | 231 } |
232 } | 232 } |
OLD | NEW |